Spaces:
Sleeping
Sleeping
Update app.py; fixed iface inputs
Browse files
app.py
CHANGED
@@ -11,9 +11,9 @@ def translate(text):
|
|
11 |
return result[0]["summary_text"]
|
12 |
|
13 |
iface = gr.Interface(
|
14 |
-
fn
|
15 |
-
inputs
|
16 |
-
outputs
|
17 |
)
|
18 |
|
19 |
iface.launch()
|
|
|
11 |
return result[0]["summary_text"]
|
12 |
|
13 |
iface = gr.Interface(
|
14 |
+
fn=translate,
|
15 |
+
inputs=gr.Textbox(lines=10, placeholder="Enter text to summarize..."),
|
16 |
+
outputs="text"
|
17 |
)
|
18 |
|
19 |
iface.launch()
|