juanpablosanchez commited on
Commit
f8c5f76
·
1 Parent(s): e743949

modificado local host

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,9 +49,9 @@ api_thread.start()
49
 
50
  # Configurar Gradio
51
  def predict_gradio(text):
52
- response = requests.post("http://localhost:8000/predict", json={"text": text})
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)