dragonhearted commited on
Commit
b9cbd59
ยท
1 Parent(s): 66b71f1

change url

Browse files
Files changed (2) hide show
  1. api.py +1 -1
  2. app.py +1 -1
api.py CHANGED
@@ -23,4 +23,4 @@ async def calculate_endpoint(request: Inputs):
23
  return {"error": str(e)}
24
 
25
  if __name__ == "__main__":
26
- uvicorn.run(app, host="0.0.0.0")
 
23
  return {"error": str(e)}
24
 
25
  if __name__ == "__main__":
26
+ uvicorn.run(app, host="0.0.0.0", port = 8000)
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import requests
3
  import re
4
 
5
- API_URL = "https://dragonhearted-calculator_api.hf.space/calculate"
6
 
7
  def calculate(expression):
8
  response = requests.post(API_URL, json={"expression": expression})
 
2
  import requests
3
  import re
4
 
5
+ API_URL = "http://localhost:8000/calculate"
6
 
7
  def calculate(expression):
8
  response = requests.post(API_URL, json={"expression": expression})