nhathuy07 commited on
Commit
215d918
·
verified ·
1 Parent(s): 851df45

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -624,6 +624,8 @@ async def llm_generate_text(request):
624
 
625
  try:
626
  repl = _r.json()['choices'][0]['message']['content']
 
 
627
  return PlainTextResponse(repl)
628
 
629
  except Exception as e:
 
624
 
625
  try:
626
  repl = _r.json()['choices'][0]['message']['content']
627
+ # input, type_out="plain", type_in="html"
628
+ repl = await __convert_text(repl.encode(), "html-raw_html", "markdown")
629
  return PlainTextResponse(repl)
630
 
631
  except Exception as e: