victor HF staff commited on
Commit
1a48d31
·
1 Parent(s): 41fa8cc

feat: Add prompt printing before sending request to inference client

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -139,6 +139,13 @@ YOUR FFMPEG COMMAND:
139
  },
140
  ]
141
  try:
 
 
 
 
 
 
 
142
  completion = client.chat.completions.create(
143
  model="Qwen/Qwen2.5-Coder-32B-Instruct",
144
  messages=messages,
 
139
  },
140
  ]
141
  try:
142
+ # Print the complete prompt
143
+ print("\n=== COMPLETE PROMPT ===")
144
+ for msg in messages:
145
+ print(f"\n[{msg['role'].upper()}]:")
146
+ print(msg['content'])
147
+ print("=====================\n")
148
+
149
  completion = client.chat.completions.create(
150
  model="Qwen/Qwen2.5-Coder-32B-Instruct",
151
  messages=messages,