Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,14 +31,14 @@ def translate(text_input, openapi_key):
|
|
| 31 |
|
| 32 |
time.sleep(30)
|
| 33 |
|
| 34 |
-
return ''.join(reply)
|
| 35 |
|
| 36 |
inputs = [
|
| 37 |
gr.inputs.Textbox(lines=2, label="Input Open API Key"),
|
| 38 |
gr.inputs.File(label="Upload MDX File")
|
| 39 |
]
|
| 40 |
|
| 41 |
-
outputs = gr.outputs.Textbox(label="Translation")
|
| 42 |
|
| 43 |
def translate_with_upload(text, file):
|
| 44 |
|
|
|
|
| 31 |
|
| 32 |
time.sleep(30)
|
| 33 |
|
| 34 |
+
return ''.join(reply)[0]
|
| 35 |
|
| 36 |
inputs = [
|
| 37 |
gr.inputs.Textbox(lines=2, label="Input Open API Key"),
|
| 38 |
gr.inputs.File(label="Upload MDX File")
|
| 39 |
]
|
| 40 |
|
| 41 |
+
outputs = gr.outputs.Textbox(label="Translation", type="auto")
|
| 42 |
|
| 43 |
def translate_with_upload(text, file):
|
| 44 |
|