Spaces:
Sleeping
Sleeping
Update app.py
Browse files53 unmodified lines5455565758596053 unmodified lines# Убираем промпт из ответаreply = reply.split("<|assistant|>")[-1].strip()return JSONResponse({"reply": reply})except Exception as e:return JSONResponse({"error": str(e)})53 unmodified lines545556575859606153 unmodified lines# Убираем промпт из ответаreply = reply.split("<|assistant|>")[-1].strip()from fastapi.responses import PlainTextResponsereturn PlainTextResponse(reply)except Exception as e:return JSONResponse({"error": str(e)})
app.py+2-1