Spaces:
Sleeping
Sleeping
alanchen1115
commited on
Commit
•
1ce0901
1
Parent(s):
709a253
Update main.py
Browse files
main.py
CHANGED
@@ -15,6 +15,9 @@ from linebot.models import (
|
|
15 |
)
|
16 |
|
17 |
client = Client(os.environ["LLM_ENDPOINT"])
|
|
|
|
|
|
|
18 |
|
19 |
app = FastAPI()
|
20 |
app.add_middleware(
|
@@ -25,11 +28,6 @@ app.add_middleware(
|
|
25 |
allow_headers=["*"],
|
26 |
)
|
27 |
|
28 |
-
line_bot_api = LineBotApi(os.environ["CHANNEL_ACCESS_TOKEN"])
|
29 |
-
line_handler = WebhookHandler(os.environ["CHANNEL_SECRET"])
|
30 |
-
|
31 |
-
working_status = os.getenv("DEFALUT_TALKING", default = "true").lower() == "true"
|
32 |
-
|
33 |
@app.get("/")
|
34 |
def root():
|
35 |
return {"title": "Echo Bot"}
|
|
|
15 |
)
|
16 |
|
17 |
client = Client(os.environ["LLM_ENDPOINT"])
|
18 |
+
line_bot_api = LineBotApi(os.environ["CHANNEL_ACCESS_TOKEN"])
|
19 |
+
line_handler = WebhookHandler(os.environ["CHANNEL_SECRET"])
|
20 |
+
working_status = os.getenv("DEFALUT_TALKING", default = "true").lower() == "true"
|
21 |
|
22 |
app = FastAPI()
|
23 |
app.add_middleware(
|
|
|
28 |
allow_headers=["*"],
|
29 |
)
|
30 |
|
|
|
|
|
|
|
|
|
|
|
31 |
@app.get("/")
|
32 |
def root():
|
33 |
return {"title": "Echo Bot"}
|