Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ def greet(name):
|
|
| 10 |
model = SetFitModel.from_pretrained("dvilasuero/setfit-mini-imdb")
|
| 11 |
|
| 12 |
def classify(text):
|
| 13 |
-
return model(text)
|
| 14 |
|
| 15 |
iface = gr.Interface(fn=classify, inputs="text", outputs="text")
|
| 16 |
iface.launch()
|
|
|
|
| 10 |
model = SetFitModel.from_pretrained("dvilasuero/setfit-mini-imdb")
|
| 11 |
|
| 12 |
def classify(text):
|
| 13 |
+
return model([text])[0]
|
| 14 |
|
| 15 |
iface = gr.Interface(fn=classify, inputs="text", outputs="text")
|
| 16 |
iface.launch()
|