Spaces:
Sleeping
Sleeping
alanchen1115
commited on
Commit
•
df5bf2a
1
Parent(s):
e9e9b1a
Update main.py
Browse files
main.py
CHANGED
@@ -18,7 +18,7 @@ app = FastAPI()
|
|
18 |
app.add_middleware(
|
19 |
CORSMiddleware,
|
20 |
allow_origins=["*"],
|
21 |
-
allow_credentials=
|
22 |
allow_methods=["*"],
|
23 |
allow_headers=["*"],
|
24 |
)
|
@@ -26,7 +26,7 @@ app.add_middleware(
|
|
26 |
line_bot_api = LineBotApi(os.environ["line_bot_api"])
|
27 |
line_handler = WebhookHandler(os.environ["line_handler"])
|
28 |
|
29 |
-
working_status =
|
30 |
|
31 |
@app.get("/")
|
32 |
def root():
|
|
|
18 |
app.add_middleware(
|
19 |
CORSMiddleware,
|
20 |
allow_origins=["*"],
|
21 |
+
allow_credentials=True,
|
22 |
allow_methods=["*"],
|
23 |
allow_headers=["*"],
|
24 |
)
|
|
|
26 |
line_bot_api = LineBotApi(os.environ["line_bot_api"])
|
27 |
line_handler = WebhookHandler(os.environ["line_handler"])
|
28 |
|
29 |
+
working_status = working_status = os.getenv("DEFALUT_TALKING", default = "true").lower() == "true"
|
30 |
|
31 |
@app.get("/")
|
32 |
def root():
|