Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -105,8 +105,8 @@ class GradioInterface:
|
|
105 |
gr.Markdown("### Automating Prompt Engineering by Refining your Prompts")
|
106 |
gr.Markdown("Learn how to generate an improved version of your prompts. Enter a main idea for a prompt, choose a meta prompt, and the model will attempt to generate an improved version.")
|
107 |
|
|
|
108 |
with gr.Row():
|
109 |
-
gr.Markdown("## Refine Prompt")
|
110 |
prompt_text = gr.Textbox(label="Type the prompt (or let it empty to see metaprompt)")
|
111 |
with gr.Accordion("Meta Prompt explanation", open=False):
|
112 |
gr.Markdown(explanation_markdown)
|
@@ -131,6 +131,7 @@ class GradioInterface:
|
|
131 |
inputs=[prompt_text, meta_prompt_choice],
|
132 |
outputs=[analysis_evaluation, refined_prompt, explanation_of_refinements, full_response_json]
|
133 |
)
|
|
|
134 |
with gr.Row():
|
135 |
apply_model = gr.Dropdown(
|
136 |
[
|
@@ -145,7 +146,7 @@ class GradioInterface:
|
|
145 |
value="meta-llama/Meta-Llama-3-70B-Instruct",
|
146 |
label="Choose the Model to apply to the prompts (the one you will used)"
|
147 |
)
|
148 |
-
|
149 |
apply_button = gr.Button("Apply MetaPrompt")
|
150 |
|
151 |
with gr.Tab("Original Prompt Output"):
|
|
|
105 |
gr.Markdown("### Automating Prompt Engineering by Refining your Prompts")
|
106 |
gr.Markdown("Learn how to generate an improved version of your prompts. Enter a main idea for a prompt, choose a meta prompt, and the model will attempt to generate an improved version.")
|
107 |
|
108 |
+
gr.Markdown("## Refine Prompt")
|
109 |
with gr.Row():
|
|
|
110 |
prompt_text = gr.Textbox(label="Type the prompt (or let it empty to see metaprompt)")
|
111 |
with gr.Accordion("Meta Prompt explanation", open=False):
|
112 |
gr.Markdown(explanation_markdown)
|
|
|
131 |
inputs=[prompt_text, meta_prompt_choice],
|
132 |
outputs=[analysis_evaluation, refined_prompt, explanation_of_refinements, full_response_json]
|
133 |
)
|
134 |
+
gr.Markdown("## See MetaPrompt Impact")
|
135 |
with gr.Row():
|
136 |
apply_model = gr.Dropdown(
|
137 |
[
|
|
|
146 |
value="meta-llama/Meta-Llama-3-70B-Instruct",
|
147 |
label="Choose the Model to apply to the prompts (the one you will used)"
|
148 |
)
|
149 |
+
|
150 |
apply_button = gr.Button("Apply MetaPrompt")
|
151 |
|
152 |
with gr.Tab("Original Prompt Output"):
|