Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ class GradioInterface:
|
|
186 |
gr.Markdown("### Initial prompt analysis")
|
187 |
analysis_evaluation = gr.Markdown()
|
188 |
gr.Markdown("### Refined Prompt")
|
189 |
-
refined_prompt = gr.Textbox("Refined Prompt",
|
190 |
interactive=False,
|
191 |
elem_classes="no-background"
|
192 |
)
|
@@ -216,11 +216,11 @@ class GradioInterface:
|
|
216 |
apply_button = gr.Button("Apply MetaPrompt")
|
217 |
|
218 |
# with gr.Column(elem_classes=["container", "results-container"]):
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
|
225 |
refine_button.click(
|
226 |
fn=self.refine_prompt,
|
|
|
186 |
gr.Markdown("### Initial prompt analysis")
|
187 |
analysis_evaluation = gr.Markdown()
|
188 |
gr.Markdown("### Refined Prompt")
|
189 |
+
refined_prompt = gr.Textbox(label="Refined Prompt",
|
190 |
interactive=False,
|
191 |
elem_classes="no-background"
|
192 |
)
|
|
|
216 |
apply_button = gr.Button("Apply MetaPrompt")
|
217 |
|
218 |
# with gr.Column(elem_classes=["container", "results-container"]):
|
219 |
+
with gr.Tabs():
|
220 |
+
with gr.TabItem("Original Prompt Output"):
|
221 |
+
original_output = gr.Markdown()
|
222 |
+
with gr.TabItem("Refined Prompt Output"):
|
223 |
+
refined_output = gr.Markdown()
|
224 |
|
225 |
refine_button.click(
|
226 |
fn=self.refine_prompt,
|