Spaces:
Running
Running
Update main.py
Browse files
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:
|