Spaces:
Running
Running
Update app.py
Browse files
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("%%
|
| 67 |
-
(line.strip().startswith("class")
|
| 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)
|