Spaces:
Runtime error
Runtime error
twinkle-toes
commited on
Commit
•
18fb5f7
1
Parent(s):
2449837
Update app.py
Browse files
app.py
CHANGED
@@ -153,8 +153,8 @@ def load_from_url(url):
|
|
153 |
return gr.update(selected=1), obj, False
|
154 |
|
155 |
def render_prompt(prompt, enabled=True):
|
156 |
-
with gr.Accordion(prompt["name"] + ("" if enabled else " (DISABLED)"), open=enabled):
|
157 |
-
if prompt.get("marker"):
|
158 |
gr.Markdown(f"This is a marker ({prompt['identifier']})")
|
159 |
else:
|
160 |
gr.Markdown(f"Role: {prompt['role'] or 'system'}")
|
|
|
153 |
return gr.update(selected=1), obj, False
|
154 |
|
155 |
def render_prompt(prompt, enabled=True):
|
156 |
+
with gr.Accordion(prompt["name"] + ("" if enabled else " (DISABLED)"), open=enabled or prompt.get("marker", False)):
|
157 |
+
if prompt.get("marker", False):
|
158 |
gr.Markdown(f"This is a marker ({prompt['identifier']})")
|
159 |
else:
|
160 |
gr.Markdown(f"Role: {prompt['role'] or 'system'}")
|