Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,8 @@ def translate(input_text):
|
|
24 |
stdout, stderr = process.communicate()
|
25 |
if process.returncode != 0:
|
26 |
raise Exception(f"Error occurred: {stderr.decode().strip()}")
|
27 |
-
|
|
|
28 |
return stdout.decode().strip()
|
29 |
|
30 |
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 |
+
with open ('./output_file.txt','r') as f:
|
28 |
+
print(f)
|
29 |
return stdout.decode().strip()
|
30 |
|
31 |
demo = gr.Interface(fn=translate, inputs="textbox", outputs="textbox")
|