Spaces:
Running
Running
alptangall
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -21,6 +21,6 @@ def read_root():
|
|
21 |
return {"Hello": "World!"}
|
22 |
@app.get("/start")
|
23 |
def read_root():
|
24 |
-
result=subprocess.Popen(["python", 'main1.py'],
|
25 |
print(result)
|
26 |
return {"Bot starting"}
|
|
|
21 |
return {"Hello": "World!"}
|
22 |
@app.get("/start")
|
23 |
def read_root():
|
24 |
+
result=subprocess.Popen(["python", 'main1.py'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
25 |
print(result)
|
26 |
return {"Bot starting"}
|