alptangall commited on
Commit
6cc855e
·
verified ·
1 Parent(s): 1f8f305

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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.run(["python", 'main1.py'], capture_output=True, text=True)
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'], capture_output=True, text=True)
25
  print(result)
26
  return {"Bot starting"}