Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,7 +131,7 @@ def predict_fn(texto):
|
|
| 131 |
})
|
| 132 |
return details
|
| 133 |
|
| 134 |
-
iface = gr.Interface(fn=predict_fn, inputs="text", outputs="json"
|
| 135 |
|
| 136 |
if __name__ == "__main__":
|
| 137 |
-
iface.launch()
|
|
|
|
| 131 |
})
|
| 132 |
return details
|
| 133 |
|
| 134 |
+
iface = gr.Interface(fn=predict_fn, inputs="text", outputs="json")
|
| 135 |
|
| 136 |
if __name__ == "__main__":
|
| 137 |
+
iface.launch(share=True, api_name="predict")
|