Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
|
|
3 |
def get_summarize(input_text):
|
4 |
return summarizer(input_text)
|
5 |
iface=gr.Interface(fn=get_summarize,inputs="text",outputs=['text'],title='Sakil Text Summarization APP')
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
+
summarizer= pipeline("summarization")
|
4 |
def get_summarize(input_text):
|
5 |
return summarizer(input_text)
|
6 |
iface=gr.Interface(fn=get_summarize,inputs="text",outputs=['text'],title='Sakil Text Summarization APP')
|