SaintlyPioneer commited on
Commit
96216d3
·
verified ·
1 Parent(s): 9c78428

update port

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def compute(num1: float, num2: float, operation: str):
33
  import httpx
34
 
35
  # Extract the base URL from the request
36
- base_url = f"http://localhost:8000"
37
 
38
  url = f"{base_url}/calculate"
39
  response = httpx.get(url, params={"num1": num1, "num2": num2, "operation": operation})
@@ -48,4 +48,4 @@ app = gr.mount_gradio_app(app, iface, '/')
48
 
49
  if __name__ == "__main__":
50
  import uvicorn
51
- uvicorn.run(app, host="127.0.0.1", port=8000)
 
33
  import httpx
34
 
35
  # Extract the base URL from the request
36
+ base_url = f"http://localhost:7860"
37
 
38
  url = f"{base_url}/calculate"
39
  response = httpx.get(url, params={"num1": num1, "num2": num2, "operation": operation})
 
48
 
49
  if __name__ == "__main__":
50
  import uvicorn
51
+ uvicorn.run(app, host="127.0.0.1", port=7860)