Ron Au commited on
Commit
5513f71
1 Parent(s): 6ee4b6a
Files changed (2) hide show
  1. app.py +2 -1
  2. start.py +1 -1
app.py CHANGED
@@ -69,7 +69,8 @@ def process_task(task_id):
69
 
70
  @app.get('/')
71
  def index():
72
- return FileResponse(path="static/index.html", media_type="text/html")
 
73
 
74
 
75
  @app.get('/details')
 
69
 
70
  @app.get('/')
71
  def index():
72
+ return {"test": "content"}
73
+ # return FileResponse(path="static/index.html", media_type="text/html")
74
 
75
 
76
  @app.get('/details')
start.py CHANGED
@@ -1,4 +1,4 @@
1
 
2
  import subprocess
3
 
4
- subprocess.run("uvicorn app:app --host localhost --port 7860", shell=True)
 
1
 
2
  import subprocess
3
 
4
+ subprocess.run("uvicorn app:app --host 0.0.0.0 --port 7860", shell=True)