Bofandra commited on
Commit
1b1b0f8
·
verified ·
1 Parent(s): 31d5e67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -48,13 +48,15 @@ Return the result in this format:
48
  <code_here>
49
  ```
50
  """
51
-
 
52
  response = client.chat_completion(
53
  messages=[
54
  {"role": "system", "content": "You are a helpful software architecture assistant."},
55
  {"role": "user", "content": prompt}
56
  ]
57
  )
 
58
  return response.choices[0].message.content if response and response.choices else "❌ Error: No response received."
59
 
60
  # 🎨 Gradio UI
 
48
  <code_here>
49
  ```
50
  """
51
+
52
+ print(prompt)
53
  response = client.chat_completion(
54
  messages=[
55
  {"role": "system", "content": "You are a helpful software architecture assistant."},
56
  {"role": "user", "content": prompt}
57
  ]
58
  )
59
+ print(response)
60
  return response.choices[0].message.content if response and response.choices else "❌ Error: No response received."
61
 
62
  # 🎨 Gradio UI