Bin ZHANG
commited on
Commit
•
8392562
1
Parent(s):
e8e594d
bug fix
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def translate(text):
|
|
8 |
return result[0]["summary_text"]
|
9 |
|
10 |
iface = gr.Interface(fn=translate,
|
11 |
-
|
12 |
outputs="text")
|
13 |
|
14 |
iface.launch()
|
|
|
8 |
return result[0]["summary_text"]
|
9 |
|
10 |
iface = gr.Interface(fn=translate,
|
11 |
+
inputs = gr.inputs.Textbox(lines=10,placeholder="Enter text to summarize..."),
|
12 |
outputs="text")
|
13 |
|
14 |
iface.launch()
|