nhathuy07 commited on
Commit
7e94358
·
verified ·
1 Parent(s): 6313289

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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(requests.path_params['id'])
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(requests.path_params['id'])
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']