Spaces:
Running
Running
Commit
•
e933949
1
Parent(s):
eb181c3
switch to textbox
Browse files
app.py
CHANGED
@@ -215,8 +215,8 @@ def render_prompt(prompt, enabled=True):
|
|
215 |
gr.Markdown(f"Injection depth: {prompt['injection_depth']} (absolute)")
|
216 |
if prompt["identifier"] in builtin_prompt_ids:
|
217 |
gr.Markdown(f"This is a system prompt ({prompt['identifier']})")
|
218 |
-
if prompt["content"]
|
219 |
-
gr.
|
220 |
|
221 |
with gr.Blocks() as demo:
|
222 |
preset = gr.State(None)
|
|
|
215 |
gr.Markdown(f"Injection depth: {prompt['injection_depth']} (absolute)")
|
216 |
if prompt["identifier"] in builtin_prompt_ids:
|
217 |
gr.Markdown(f"This is a system prompt ({prompt['identifier']})")
|
218 |
+
if prompt["content"]:
|
219 |
+
gr.Textbox(prompt["content"], container=False, interactive=False)
|
220 |
|
221 |
with gr.Blocks() as demo:
|
222 |
preset = gr.State(None)
|