Spaces:
Sleeping
Sleeping
change type in file name and change app files
Browse files- app.py +1 -6
- requirments.txt → requirements.txt +1 -1
app.py
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
# def greet(name):
|
| 4 |
-
# return "Hello " + name + "!!"
|
| 5 |
|
| 6 |
-
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
-
# iface.launch()
|
| 8 |
|
| 9 |
-
from transformers import pipeline
|
| 10 |
|
| 11 |
-
nlp = pipeline("sentiment-analysis")
|
| 12 |
|
| 13 |
summurizer = pipeline( "summarization",
|
| 14 |
model="t5-base",
|
|
|
|
| 1 |
+
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
|
|
|
|
|
|
|
| 4 |
|
|
|
|
|
|
|
| 5 |
|
|
|
|
| 6 |
|
|
|
|
| 7 |
|
| 8 |
summurizer = pipeline( "summarization",
|
| 9 |
model="t5-base",
|
requirments.txt → requirements.txt
RENAMED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
transformers==4.21.2
|
| 2 |
-
tensorflow==2.9.1
|
|
|
|
| 1 |
transformers==4.21.2
|
| 2 |
+
tensorflow==2.9.1
|