Update main.py
Browse files
main.py
CHANGED
@@ -61,6 +61,7 @@ def chat_completion():
|
|
61 |
result = hf_response.json()
|
62 |
|
63 |
output_text = result["data"][0] if "data" in result else "❌ Unexpected response format"
|
|
|
64 |
|
65 |
return jsonify({
|
66 |
"id": f"chatcmpl-{uuid.uuid4().hex[:12]}",
|
|
|
61 |
result = hf_response.json()
|
62 |
|
63 |
output_text = result["data"][0] if "data" in result else "❌ Unexpected response format"
|
64 |
+
print(f"\n🧠 Ответ модели:\n{output_text}\n") # ⬅️ Вывод в консоль
|
65 |
|
66 |
return jsonify({
|
67 |
"id": f"chatcmpl-{uuid.uuid4().hex[:12]}",
|