Commit
·
f8c5f76
1
Parent(s):
e743949
modificado local host
Browse files
app.py
CHANGED
@@ -49,9 +49,9 @@ api_thread.start()
|
|
49 |
|
50 |
# Configurar Gradio
|
51 |
def predict_gradio(text):
|
52 |
-
response = requests.post("
|
53 |
entities = response.json().get("entities", [])
|
54 |
return entities
|
55 |
|
56 |
demo = gr.Interface(fn=predict_gradio, inputs="text", outputs="json")
|
57 |
-
demo.launch(share=True)
|
|
|
49 |
|
50 |
# Configurar Gradio
|
51 |
def predict_gradio(text):
|
52 |
+
response = requests.post("https://asmalljob-docker01.hf.space/predict", json={"text": text}) # Asegúrate de que esta URL es correcta
|
53 |
entities = response.json().get("entities", [])
|
54 |
return entities
|
55 |
|
56 |
demo = gr.Interface(fn=predict_gradio, inputs="text", outputs="json")
|
57 |
+
demo.launch(share=True)
|