Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,13 @@ model = AutoModelForCausalLM.from_pretrained(MODEL_ID)
|
|
| 10 |
|
| 11 |
app = FastAPI()
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
@app.get("/chat")
|
| 14 |
def chat(query: str):
|
| 15 |
"""
|
|
|
|
| 10 |
|
| 11 |
app = FastAPI()
|
| 12 |
|
| 13 |
+
@app.get("/")
|
| 14 |
+
def root():
|
| 15 |
+
return {
|
| 16 |
+
"message": "✅ Trigger82 AI API is running!",
|
| 17 |
+
"usage": "Use /chat?query=Your+question to get a response."
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
@app.get("/chat")
|
| 21 |
def chat(query: str):
|
| 22 |
"""
|