Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,15 +63,15 @@ def prediction(text):
|
|
| 63 |
|
| 64 |
demo_app = gr.Interface(
|
| 65 |
fn=prediction,
|
| 66 |
-
inputs=gr.Textbox(label = " Text", max_lines = 20),
|
| 67 |
-
outputs= "text"
|
| 68 |
title = "Text Summarization",
|
| 69 |
#description = DESCRIPTION,
|
| 70 |
#examples = EXAMPLES,
|
| 71 |
-
cache_example = True,
|
| 72 |
-
live = True,
|
| 73 |
theme = 'huggingface'
|
| 74 |
)
|
| 75 |
-
if __name__ == "__main__":
|
| 76 |
-
|
| 77 |
#demo_app.launch(debug=True, enable_queue = True)
|
|
|
|
| 63 |
|
| 64 |
demo_app = gr.Interface(
|
| 65 |
fn=prediction,
|
| 66 |
+
inputs=gr.Textbox(label = " Enter the Text", max_lines = 20),
|
| 67 |
+
outputs= gr.Textbox(label = "Summarization of text")
|
| 68 |
title = "Text Summarization",
|
| 69 |
#description = DESCRIPTION,
|
| 70 |
#examples = EXAMPLES,
|
| 71 |
+
#cache_example = True,
|
| 72 |
+
#live = True,
|
| 73 |
theme = 'huggingface'
|
| 74 |
)
|
| 75 |
+
#if __name__ == "__main__":
|
| 76 |
+
demo_app.launch()
|
| 77 |
#demo_app.launch(debug=True, enable_queue = True)
|