Spaces:
Sleeping
Sleeping
el-filatova
commited on
Commit
•
b22e92c
1
Parent(s):
d51f801
Update app.py
Browse files
app.py
CHANGED
@@ -6,5 +6,5 @@ classifier = pipeline('text-classification', model='el-filatova/clasificador-twe
|
|
6 |
def predict(text):
|
7 |
return classifier(text)
|
8 |
|
9 |
-
iface = gr.Interface(fn=predict, inputs=[gr.
|
10 |
iface.launch()
|
|
|
6 |
def predict(text):
|
7 |
return classifier(text)
|
8 |
|
9 |
+
iface = gr.Interface(fn=predict, inputs=[gr.Textbox(value="ah, what a pang of aching sharp surprise")], outputs="text")
|
10 |
iface.launch()
|