juanpablosanchez commited on
Commit
801a8a1
1 Parent(s): 2023348

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -40,9 +40,7 @@ async def predict(input: TextInput):
40
 
41
  # Configurar Gradio
42
  def predict_gradio(text):
43
- response = requests.post("http://localhost:8000/predict", json={"text": text})
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)