JJFrancisco commited on
Commit
17b7fff
·
verified ·
1 Parent(s): a7b26ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -24,6 +24,7 @@ def translate(input_text):
24
  stdout, stderr = process.communicate()
25
  if process.returncode != 0:
26
  raise Exception(f"Error occurred: {stderr.decode().strip()}")
 
27
  return stdout.decode().strip()
28
 
29
  demo = gr.Interface(fn=translate, inputs="textbox", outputs="textbox")
 
24
  stdout, stderr = process.communicate()
25
  if process.returncode != 0:
26
  raise Exception(f"Error occurred: {stderr.decode().strip()}")
27
+ print(./output_file.txt)
28
  return stdout.decode().strip()
29
 
30
  demo = gr.Interface(fn=translate, inputs="textbox", outputs="textbox")