Update app.py
Browse files
app.py
CHANGED
@@ -40,9 +40,7 @@ async def predict(input: TextInput):
|
|
40 |
|
41 |
# Configurar Gradio
|
42 |
def predict_gradio(text):
|
43 |
-
|
44 |
-
entities = response.json().get("entities", [])
|
45 |
-
return entities
|
46 |
|
47 |
demo = gr.Interface(fn=predict_gradio, inputs="text", outputs="json")
|
48 |
demo.launch(share=True)
|
|
|
40 |
|
41 |
# Configurar Gradio
|
42 |
def predict_gradio(text):
|
43 |
+
response = requests.post("https://asmalljob-docker01.hf.space/predict", json={"text": text})
|
|
|
|
|
44 |
|
45 |
demo = gr.Interface(fn=predict_gradio, inputs="text", outputs="json")
|
46 |
demo.launch(share=True)
|