Spaces:
Sleeping
Sleeping
minor modification on gradio functionality
Browse files
app.py
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
-
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
|
7 |
|
8 |
summurizer = pipeline( "summarization",
|
@@ -20,7 +17,7 @@ def translate(text):
|
|
20 |
|
21 |
|
22 |
iface = gr.Interface( fn=translate,
|
23 |
-
inputs= gr.
|
24 |
outputs= "text")
|
25 |
|
26 |
iface.launch()
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import pipeline
|
|
|
|
|
3 |
|
4 |
|
5 |
summurizer = pipeline( "summarization",
|
|
|
17 |
|
18 |
|
19 |
iface = gr.Interface( fn=translate,
|
20 |
+
inputs= gr.Textbox(lines=10, placeholder= "Enter a text to summurize ..."),
|
21 |
outputs= "text")
|
22 |
|
23 |
iface.launch()
|