JJFrancisco commited on
Commit
ced94c6
·
verified ·
1 Parent(s): 99eae47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -26,6 +26,7 @@ def translate(input_text):
26
  raise Exception(f"Error occurred: {stderr.decode().strip()}")
27
  with open ('./output_file.txt','r') as f:
28
  resultado= f.read()
 
29
  return stdout.decode().strip()
30
 
31
  demo = gr.Interface(fn=translate, inputs="textbox", outputs="textbox")
 
26
  raise Exception(f"Error occurred: {stderr.decode().strip()}")
27
  with open ('./output_file.txt','r') as f:
28
  resultado= f.read()
29
+ # return stdout.decode().strip()
30
  return stdout.decode().strip()
31
 
32
  demo = gr.Interface(fn=translate, inputs="textbox", outputs="textbox")