Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def replace_focus_placeholders(report_html: str, context: str, initial_query: st
|
|
| 46 |
return re.sub(pattern, placeholder_replacer, report_html, flags=re.DOTALL)
|
| 47 |
|
| 48 |
def generate_visual_snippet(placeholder_text: str, context: str, initial_query: str, crumbs: str) -> str:
|
| 49 |
-
prompt =
|
| 50 |
Generate a mermaid code displaying a simple but effective and elegant visualization based on the following requirements:
|
| 51 |
{placeholder_text}
|
| 52 |
|
|
|
|
| 46 |
return re.sub(pattern, placeholder_replacer, report_html, flags=re.DOTALL)
|
| 47 |
|
| 48 |
def generate_visual_snippet(placeholder_text: str, context: str, initial_query: str, crumbs: str) -> str:
|
| 49 |
+
prompt = f"""
|
| 50 |
Generate a mermaid code displaying a simple but effective and elegant visualization based on the following requirements:
|
| 51 |
{placeholder_text}
|
| 52 |
|