JJFrancisco commited on
Commit
5fa4dd9
1 Parent(s): ced94c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -27,7 +27,8 @@ def translate(input_text):
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")
33
  demo.launch()
 
27
  with open ('./output_file.txt','r') as f:
28
  resultado= f.read()
29
  # return stdout.decode().strip()
30
+ print resultado
31
+ return resultado
32
 
33
  demo = gr.Interface(fn=translate, inputs="textbox", outputs="textbox")
34
  demo.launch()