Hyeonseo commited on
Commit
fb2d7cc
·
1 Parent(s): 7bdfeca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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