EmoCube commited on
Commit
1c5064d
·
verified ·
1 Parent(s): e7e90a7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
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]}",