Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ group_dict = {
|
|
37 |
29: 'Migrants and displaced populations'}
|
38 |
|
39 |
def predict(text):
|
40 |
-
preds = model(text)[0].item()
|
41 |
return group_dict[preds]
|
42 |
|
43 |
gradio_ui = gr.Interface(
|
|
|
37 |
29: 'Migrants and displaced populations'}
|
38 |
|
39 |
def predict(text):
|
40 |
+
preds = model([text])[0].item()
|
41 |
return group_dict[preds]
|
42 |
|
43 |
gradio_ui = gr.Interface(
|