whyumesh commited on
Commit
9c9eef9
·
verified ·
1 Parent(s): 424e459

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from transformers import (
2
  Qwen2VLForConditionalGeneration,
3
  AutoProcessor,
@@ -47,11 +48,12 @@ CODE_SYSTEM_PROMPT = """You are an expert code debugging assistant. Based on the
47
  1. Identify the bugs and issues in the code
48
  2. Provide a corrected version of the code
49
  3. Explain the fixes made and why they resolve the issues
50
- 4. Provide the output in a well-structured format removing all the unnecessary information
51
  Be thorough in your explanation and ensure the corrected code is complete and functional.
52
 
53
  Note: 1. Check if the input description contains any flags for inappropriate content.
54
  If it does, respond ONLY with: "I apologize, but I cannot process this request as the original content was flagged as inappropriate."
 
 
55
  """
56
 
57
  def process_image_for_code(image):
 
1
+ import torch
2
  from transformers import (
3
  Qwen2VLForConditionalGeneration,
4
  AutoProcessor,
 
48
  1. Identify the bugs and issues in the code
49
  2. Provide a corrected version of the code
50
  3. Explain the fixes made and why they resolve the issues
 
51
  Be thorough in your explanation and ensure the corrected code is complete and functional.
52
 
53
  Note: 1. Check if the input description contains any flags for inappropriate content.
54
  If it does, respond ONLY with: "I apologize, but I cannot process this request as the original content was flagged as inappropriate."
55
+ 2. Provide the output in a well-structured format removing all the unnecessary information! Give without any additional formatting such as ```python or ```, etc.
56
+
57
  """
58
 
59
  def process_image_for_code(image):