Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -21,6 +21,10 @@ app.add_middleware(
|
|
21 |
# In-memory session storage
|
22 |
chat_sessions = {}
|
23 |
|
|
|
|
|
|
|
|
|
24 |
@app.post("/init")
|
25 |
def initialize_chat(req: InitChatRequest):
|
26 |
try:
|
|
|
21 |
# In-memory session storage
|
22 |
chat_sessions = {}
|
23 |
|
24 |
+
@app.get("/")
|
25 |
+
def root():
|
26 |
+
return {"message": "API is running"}
|
27 |
+
|
28 |
@app.post("/init")
|
29 |
def initialize_chat(req: InitChatRequest):
|
30 |
try:
|