Spaces:
Sleeping
Sleeping
Upload main.py
Browse files
main.py
CHANGED
@@ -27,3 +27,13 @@ async def section(request: Request):
|
|
27 |
answer = query(data["Question"])
|
28 |
|
29 |
return {"Answer": answer}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
answer = query(data["Question"])
|
28 |
|
29 |
return {"Answer": answer}
|
30 |
+
|
31 |
+
@app.post("/csv")
|
32 |
+
async def section(request: Request):
|
33 |
+
|
34 |
+
data = await request.json()
|
35 |
+
|
36 |
+
from chat_csv import quiz
|
37 |
+
answer = quiz(data["Question"])
|
38 |
+
|
39 |
+
return {"Answer": answer}
|