Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -15,8 +15,11 @@ import aiohttp
|
|
15 |
from fastapi import FastAPI
|
16 |
|
17 |
app = FastAPI()
|
18 |
-
|
19 |
@app.get("/")
|
20 |
def read_root():
|
21 |
return {"Hello": "World!"}
|
22 |
-
|
|
|
|
|
|
|
|
15 |
from fastapi import FastAPI
|
16 |
|
17 |
app = FastAPI()
|
18 |
+
|
19 |
@app.get("/")
|
20 |
def read_root():
|
21 |
return {"Hello": "World!"}
|
22 |
+
@app.get("/start")
|
23 |
+
def read_root():
|
24 |
+
subprocess.run(["python", 'main1.py'], capture_output=True, text=True)
|
25 |
+
return {"Bot starting"}
|