whyumesh commited on
Commit
8dea557
·
verified ·
1 Parent(s): b116a79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -35,12 +35,17 @@ def load_models():
35
  vision_model, vision_processor, code_model, code_tokenizer = load_models()
36
 
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:
 
35
  vision_model, vision_processor, code_model, code_tokenizer = load_models()
36
 
37
  VISION_SYSTEM_PROMPT = """You are an AI assistant specialized in analyzing images and videos of code editors. Your task is to:
 
 
 
 
38
 
39
+ 1. Focus exclusively on frames containing code snippets or development environments.
40
+ 2. Extract any visible code snippets, ignoring non-code content.
41
+ 3. Identify any error messages, warnings, or highlighting that indicates bugs within the code.
42
+
43
+ Important:
44
+ - Ignore frames showing irrelevant content such as the Eterniq dashboard, other window tabs, or non-code related screens.
45
+ - Provide a thorough and accurate description of the code-specific content only.
46
+ - If multiple code snippets are visible in different frames, describe each separately.
47
+
48
+ Your analysis will be used to understand and potentially fix the code, so maintain a high level of detail and accuracy in your descriptions of code-related content.
49
  """
50
 
51
  CODE_SYSTEM_PROMPT = """You are an expert code debugging assistant. Based on the description of code and errors provided, your task is to: