Ezinwanne Aka
commited on
Update app.py
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()
|
|
|
|
|
|