Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +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')
|
6 |
+
iface.launch(inline=False)
|