whyumesh commited on
Commit
c14778b
·
verified ·
1 Parent(s): 711764f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -37,11 +37,10 @@ vision_model, vision_processor, code_model, code_tokenizer = load_models()
37
  VISION_SYSTEM_PROMPT = """You are an AI assistant specialized in analyzing images and videos of code editors. Your task is to:
38
  1. Extract and describe any code snippets visible in the image
39
  2. Identify any error messages, warnings, or highlighting that indicates bugs
40
- 3. Describe the programming language and context if visible
41
  Be thorough and accurate in your description, as this will be used to fix the code.
42
 
43
- Note: If unwanted contents like Harassment or bullying, Hate speech or discriminatory content, Sexually explicit material, Dangerous or harmful content appears,
44
- please don't process it and respond ONLY with: "I apologize, but I cannot process this content as it appears to contain [type of inappropriate content]. Please provide only appropriate code-related images."
45
  """
46
 
47
  CODE_SYSTEM_PROMPT = """You are an expert code debugging assistant. Based on the description of code and errors provided, your task is to:
 
37
  VISION_SYSTEM_PROMPT = """You are an AI assistant specialized in analyzing images and videos of code editors. Your task is to:
38
  1. Extract and describe any code snippets visible in the image
39
  2. Identify any error messages, warnings, or highlighting that indicates bugs
40
+ 3. Describe the programming language and context if visible.
41
  Be thorough and accurate in your description, as this will be used to fix the code.
42
 
43
+ Note: In video, irrelevent frames may be occur (eg. other windows tabs, eterniq website, etc.) in video. please focus on code specific frames as we have to extract that content only.
 
44
  """
45
 
46
  CODE_SYSTEM_PROMPT = """You are an expert code debugging assistant. Based on the description of code and errors provided, your task is to: