Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,15 @@ import gradio as gr
|
|
2 |
from gradio import inputs
|
3 |
|
4 |
description = "Dialogue Summarization "
|
5 |
-
interface = gr.Interface.load(
|
|
|
6 |
title = 'Dialogue Summarization',
|
7 |
inputs = [
|
8 |
gr.inputs.Textbox(lines = 7, label = 'Text', placeholder = 'Enter your dialogue text here... ')
|
9 |
],
|
|
|
|
|
|
|
10 |
description = description
|
11 |
)
|
12 |
interface.launch()
|
|
|
2 |
from gradio import inputs
|
3 |
|
4 |
description = "Dialogue Summarization "
|
5 |
+
interface = gr.Interface.load(
|
6 |
+
"huggingface/anegi/t5smallmodel",
|
7 |
title = 'Dialogue Summarization',
|
8 |
inputs = [
|
9 |
gr.inputs.Textbox(lines = 7, label = 'Text', placeholder = 'Enter your dialogue text here... ')
|
10 |
],
|
11 |
+
outputs = [
|
12 |
+
gr.outputs.Textbox(type = 'auto',label = 'Summary Generated')
|
13 |
+
],
|
14 |
description = description
|
15 |
)
|
16 |
interface.launch()
|