Spaces:
Sleeping
Sleeping
Commit ·
bec61fa
1
Parent(s): 88128e6
Updated
Browse files
main.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# =====================================================
|
| 2 |
-
# Tech Disciples AI Backend
|
| 3 |
# =====================================================
|
| 4 |
|
| 5 |
from fastapi import FastAPI, HTTPException, Header
|
|
@@ -113,7 +113,7 @@ class QueryInput(BaseModel):
|
|
| 113 |
# =====================================================
|
| 114 |
@app.get("/")
|
| 115 |
async def root():
|
| 116 |
-
return {"message": "✅ Tech Disciples AI
|
| 117 |
|
| 118 |
@app.post("/ai-chat")
|
| 119 |
async def ai_chat(data: QueryInput, x_api_key: str = Header(None)):
|
|
|
|
| 1 |
# =====================================================
|
| 2 |
+
# Tech Disciples AI Backend
|
| 3 |
# =====================================================
|
| 4 |
|
| 5 |
from fastapi import FastAPI, HTTPException, Header
|
|
|
|
| 113 |
# =====================================================
|
| 114 |
@app.get("/")
|
| 115 |
async def root():
|
| 116 |
+
return {"message": "✅ Tech Disciples AI is running."}
|
| 117 |
|
| 118 |
@app.post("/ai-chat")
|
| 119 |
async def ai_chat(data: QueryInput, x_api_key: str = Header(None)):
|