Spaces:
Running
Running
Ron Au
commited on
Commit
•
5513f71
1
Parent(s):
6ee4b6a
test
Browse files
app.py
CHANGED
@@ -69,7 +69,8 @@ def process_task(task_id):
|
|
69 |
|
70 |
@app.get('/')
|
71 |
def index():
|
72 |
-
return
|
|
|
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
|
|
|
1 |
|
2 |
import subprocess
|
3 |
|
4 |
+
subprocess.run("uvicorn app:app --host 0.0.0.0 --port 7860", shell=True)
|