Spaces:
Configuration error
Configuration error
RamziRebai commited on
Commit ·
a8693af
1
Parent(s): e4b0eb9
Add application file
Browse files
app.py
CHANGED
|
@@ -7,8 +7,5 @@ def predict(prompt):
|
|
| 7 |
summary= model(prompt)[0]["summary_text"]
|
| 8 |
return summary
|
| 9 |
|
| 10 |
-
with gr.
|
| 11 |
-
|
| 12 |
-
gr.interface(fn=predict, inputs=textbox, outputs="text")
|
| 13 |
-
|
| 14 |
-
demo.launch()
|
|
|
|
| 7 |
summary= model(prompt)[0]["summary_text"]
|
| 8 |
return summary
|
| 9 |
|
| 10 |
+
with gr.Interface(predict, "textbox", "text") as interface:
|
| 11 |
+
interface.launch()
|
|
|
|
|
|
|
|
|