Spaces:
Runtime error
Runtime error
Samson
commited on
Commit
•
eb20cb4
1
Parent(s):
c53b2a3
update more
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ def predict(prompt):
|
|
16 |
summary = model(prompt)[0]["summary_text"]
|
17 |
return summary
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
|
23 |
-
|
|
|
16 |
summary = model(prompt)[0]["summary_text"]
|
17 |
return summary
|
18 |
|
19 |
+
iface = gr.Interface(fn = predict,
|
20 |
+
inputs =gr.Textbox(lines = 4, placeholder "Enter what to summarize"),
|
21 |
+
outputs = "text")
|
22 |
|
23 |
+
iface.launch()
|