psvkaushik
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ def predict(prompt):
|
|
6 |
output = model(prompt)[0]['summary_text']
|
7 |
return output
|
8 |
|
9 |
-
with gr as demo:
|
10 |
textbox = gr.Textbox(placeholder="Enter the text to summarize", lines=4)
|
11 |
gr.Interface(fn=predict, inputs=textbox, outputs='text')
|
12 |
|
|
|
6 |
output = model(prompt)[0]['summary_text']
|
7 |
return output
|
8 |
|
9 |
+
with gr.Blocks() as demo:
|
10 |
textbox = gr.Textbox(placeholder="Enter the text to summarize", lines=4)
|
11 |
gr.Interface(fn=predict, inputs=textbox, outputs='text')
|
12 |
|