Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -382,7 +382,7 @@ async def generate_questions(request):
|
|
382 |
|
383 |
# parse paragraphs from document file
|
384 |
try:
|
385 |
-
__cont = await __internal_tmp_r(
|
386 |
__ps = await __parse_paragraphs(__cont[1], batching=True)
|
387 |
except:
|
388 |
return JSONResponse({}, 500)
|
@@ -517,7 +517,7 @@ async def convert2html(request):
|
|
517 |
async def get_flashcards(request):
|
518 |
# [title, content, keywords]
|
519 |
|
520 |
-
__file = await __internal_tmp_r(
|
521 |
__content = __file[1]
|
522 |
|
523 |
__lang = request.path_params['lang']
|
|
|
382 |
|
383 |
# parse paragraphs from document file
|
384 |
try:
|
385 |
+
__cont = await __internal_tmp_r(request.path_params['id'])
|
386 |
__ps = await __parse_paragraphs(__cont[1], batching=True)
|
387 |
except:
|
388 |
return JSONResponse({}, 500)
|
|
|
517 |
async def get_flashcards(request):
|
518 |
# [title, content, keywords]
|
519 |
|
520 |
+
__file = await __internal_tmp_r(request.path_params['id'])
|
521 |
__content = __file[1]
|
522 |
|
523 |
__lang = request.path_params['lang']
|