Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
import threading
|
| 3 |
-
|
| 4 |
app = FastAPI()
|
| 5 |
def bot_run():
|
| 6 |
import os
|
| 7 |
os.system("python bot_main.py")
|
| 8 |
-
@app.get("/
|
| 9 |
def greet_json():
|
| 10 |
threading.Thread(target=bot_run).start()
|
| 11 |
return {"Hello": "World!"}
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
import threading
|
|
|
|
| 3 |
app = FastAPI()
|
| 4 |
def bot_run():
|
| 5 |
import os
|
| 6 |
os.system("python bot_main.py")
|
| 7 |
+
@app.get("/")
|
| 8 |
def greet_json():
|
| 9 |
threading.Thread(target=bot_run).start()
|
| 10 |
return {"Hello": "World!"}
|