Spaces:
Sleeping
Sleeping
Zeggai Abdellah
commited on
Commit
·
c00327a
1
Parent(s):
1a2df90
try fix the chunks path
Browse files
app.py
CHANGED
|
@@ -166,9 +166,7 @@ async def generate_questions():
|
|
| 166 |
try:
|
| 167 |
# Try to load chunks from different possible locations
|
| 168 |
chunks_paths = [
|
| 169 |
-
"Data/Processed_Data/chunks.json",
|
| 170 |
-
"chunks.json",
|
| 171 |
-
"/home/user/chunks.json"
|
| 172 |
]
|
| 173 |
|
| 174 |
chunks_data = None
|
|
@@ -214,7 +212,7 @@ async def root():
|
|
| 214 |
return {
|
| 215 |
"message": "Vaccine Question Generator API",
|
| 216 |
"endpoints": {
|
| 217 |
-
"
|
| 218 |
"GET /download/{filename}": "Download generated files"
|
| 219 |
}
|
| 220 |
}
|
|
|
|
| 166 |
try:
|
| 167 |
# Try to load chunks from different possible locations
|
| 168 |
chunks_paths = [
|
| 169 |
+
"./Data/Processed_Data/chunks.json",
|
|
|
|
|
|
|
| 170 |
]
|
| 171 |
|
| 172 |
chunks_data = None
|
|
|
|
| 212 |
return {
|
| 213 |
"message": "Vaccine Question Generator API",
|
| 214 |
"endpoints": {
|
| 215 |
+
"GET /generate-questions": "Generate questions from vaccine guide",
|
| 216 |
"GET /download/{filename}": "Download generated files"
|
| 217 |
}
|
| 218 |
}
|