Kadoblam
commited on
Commit
·
8f247ca
1
Parent(s):
712d93d
Add FastAPI app files with Qwen3 integration
Browse files
app.py
CHANGED
|
@@ -13,6 +13,10 @@ client = OpenAI(
|
|
| 13 |
class Query(BaseModel):
|
| 14 |
question: str
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
@app.post("/ask")
|
| 17 |
async def ask_model(query: Query):
|
| 18 |
completion = client.chat.completions.create(
|
|
|
|
| 13 |
class Query(BaseModel):
|
| 14 |
question: str
|
| 15 |
|
| 16 |
+
@app.get("/")
|
| 17 |
+
async def root():
|
| 18 |
+
return {"message": "API está rodando!"}
|
| 19 |
+
|
| 20 |
@app.post("/ask")
|
| 21 |
async def ask_model(query: Query):
|
| 22 |
completion = client.chat.completions.create(
|