Spaces:
Runtime error
Runtime error
Commit
·
ce7c8f8
1
Parent(s):
ece0fba
Update app.py
Browse files
app.py
CHANGED
@@ -208,21 +208,11 @@ def pegasus(text):
|
|
208 |
|
209 |
import gradio as gr
|
210 |
|
211 |
-
from gradio.mix import Parallel
|
212 |
|
213 |
-
|
214 |
-
inputs =gr.inputs.Textbox(lines=15,placeholder="Enter your text !!",label='Input-10k Sections'),
|
215 |
-
outputs=gr.outputs.Textbox(label='Output- finBERT'))
|
216 |
|
217 |
-
|
218 |
inputs =gr.inputs.Textbox(lines=15,placeholder="Enter your text !!",label='Input-10k Sections'),
|
219 |
-
outputs=gr.outputs.Textbox(label='Output- Pegasus'))
|
220 |
-
|
221 |
|
222 |
-
Parallel(
|
223 |
-
interface1,
|
224 |
-
interface2,
|
225 |
-
title="Document Summarizer",
|
226 |
-
inputs =gr.inputs.Textbox(lines=15,placeholder="Enter your text !!",label='Input- 10k sections')
|
227 |
-
).launch(enable_queue=True, debug=True)
|
228 |
|
|
|
208 |
|
209 |
import gradio as gr
|
210 |
|
|
|
211 |
|
212 |
+
|
|
|
|
|
213 |
|
214 |
+
interface1 = gr.Interface(fn=pegasus,
|
215 |
inputs =gr.inputs.Textbox(lines=15,placeholder="Enter your text !!",label='Input-10k Sections'),
|
216 |
+
outputs=gr.outputs.Textbox(label='Output- Pegasus')).launch()
|
|
|
217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
|