Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -176,13 +176,11 @@ class GradioInterface:
|
|
176 |
gr.Markdown("### Automating Prompt Engineering by Refining your Prompts")
|
177 |
gr.Markdown("Learn how to generate an improved version of your prompts.")
|
178 |
|
179 |
-
with gr.Column(
|
180 |
prompt_text = gr.Textbox(
|
181 |
label="Type the prompt (or let it empty to see metaprompt)",
|
182 |
elem_classes="no-background"
|
183 |
)
|
184 |
-
with gr.Accordion("Meta Prompt explanation", open=False):
|
185 |
-
gr.Markdown(explanation_markdown)
|
186 |
meta_prompt_choice = gr.Radio(
|
187 |
["star","done","physics","morphosis", "verse", "phor","bolism","math","arpe"],
|
188 |
label="Choose Meta Prompt",
|
@@ -190,7 +188,9 @@ class GradioInterface:
|
|
190 |
elem_classes=["no-background", "radio-group"]
|
191 |
)
|
192 |
refine_button = gr.Button("Refine Prompt")
|
193 |
-
|
|
|
|
|
194 |
with gr.Column(elem_classes=["container", "analysis-container"]):
|
195 |
gr.Markdown("### Initial prompt analysis")
|
196 |
analysis_evaluation = gr.Markdown()
|
|
|
176 |
gr.Markdown("### Automating Prompt Engineering by Refining your Prompts")
|
177 |
gr.Markdown("Learn how to generate an improved version of your prompts.")
|
178 |
|
179 |
+
with gr.Column():
|
180 |
prompt_text = gr.Textbox(
|
181 |
label="Type the prompt (or let it empty to see metaprompt)",
|
182 |
elem_classes="no-background"
|
183 |
)
|
|
|
|
|
184 |
meta_prompt_choice = gr.Radio(
|
185 |
["star","done","physics","morphosis", "verse", "phor","bolism","math","arpe"],
|
186 |
label="Choose Meta Prompt",
|
|
|
188 |
elem_classes=["no-background", "radio-group"]
|
189 |
)
|
190 |
refine_button = gr.Button("Refine Prompt")
|
191 |
+
with gr.Accordion("Meta Prompt explanation", open=False):
|
192 |
+
gr.Markdown(explanation_markdown)
|
193 |
+
|
194 |
with gr.Column(elem_classes=["container", "analysis-container"]):
|
195 |
gr.Markdown("### Initial prompt analysis")
|
196 |
analysis_evaluation = gr.Markdown()
|