MKE0108 commited on
Commit
e2cb6c5
·
verified ·
1 Parent(s): c9e3e03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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("/start")
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!"}