Guiyom commited on
Commit
cf1dd09
·
verified ·
1 Parent(s): a13e442

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -63,8 +63,8 @@ def generate_visual_snippet(placeholder_text: str, context: str, initial_query:
63
  filtered_lines = [
64
  line for line in lines
65
  if not (
66
- (line.strip().startswith("%%{init:") and line.strip().endswith("%%")) or
67
- (line.strip().startswith("class") and line.strip().endswith(";"))
68
  )
69
  ]
70
  cleanedlines = "\n".join(filtered_lines)
 
63
  filtered_lines = [
64
  line for line in lines
65
  if not (
66
+ (line.strip().startswith("%%") and line.strip().endswith("%%")) or
67
+ (line.strip().startswith("class"))
68
  )
69
  ]
70
  cleanedlines = "\n".join(filtered_lines)