Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,13 @@ from transformers import pipeline
|
|
| 3 |
|
| 4 |
pipe = pipeline("sentiment-analysis")
|
| 5 |
|
| 6 |
-
def
|
| 7 |
return pipe(text)
|
| 8 |
|
| 9 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
iface.launch()
|
|
|
|
| 3 |
|
| 4 |
pipe = pipeline("sentiment-analysis")
|
| 5 |
|
| 6 |
+
def senti(name):
|
| 7 |
return pipe(text)
|
| 8 |
|
| 9 |
+
iface = gr.Interface(
|
| 10 |
+
fn=senti,
|
| 11 |
+
inputs='text',
|
| 12 |
+
outputs='text'
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
iface.launch()
|