Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -167,7 +167,23 @@ class GradioInterface:
|
|
| 167 |
)
|
| 168 |
with gr.Accordion("Meta Prompt explanation", open=False):
|
| 169 |
gr.Markdown(explanation_markdown)
|
| 170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
|
| 172 |
with gr.Column(elem_classes=["container", "analysis-container"]):
|
| 173 |
gr.Markdown("### Initial prompt analysis")
|
|
@@ -209,23 +225,7 @@ class GradioInterface:
|
|
| 209 |
with gr.TabItem("Refined Prompt Output"):
|
| 210 |
refined_output = gr.Markdown()
|
| 211 |
|
| 212 |
-
|
| 213 |
-
with gr.Accordion("Examples", open=True):
|
| 214 |
-
gr.Examples(
|
| 215 |
-
examples=[
|
| 216 |
-
["Write a story on the end of prompt engineering replaced by an Ai specialized in refining prompts.", "star"],
|
| 217 |
-
["Tell me about that guy who invented the light bulb", "physics"],
|
| 218 |
-
["Explain the universe.", "star"],
|
| 219 |
-
["What's the population of New York City and how tall is the Empire State Building and who was the first mayor?", "morphosis"],
|
| 220 |
-
["List American presidents.", "verse"],
|
| 221 |
-
["Explain why the experiment failed.", "morphosis"],
|
| 222 |
-
["Is nuclear energy good?", "verse"],
|
| 223 |
-
["How does a computer work?", "phor"],
|
| 224 |
-
["How to make money fast?", "done"],
|
| 225 |
-
["how can you prove IT0's lemma in stochastic calculus ?", "arpe"],
|
| 226 |
-
],
|
| 227 |
-
inputs=[prompt_text, meta_prompt_choice]
|
| 228 |
-
)
|
| 229 |
|
| 230 |
refine_button.click(
|
| 231 |
fn=self.refine_prompt,
|
|
|
|
| 167 |
)
|
| 168 |
with gr.Accordion("Meta Prompt explanation", open=False):
|
| 169 |
gr.Markdown(explanation_markdown)
|
| 170 |
+
with gr.Column(elem_classes=["container", "examples-container"]):
|
| 171 |
+
with gr.Accordion("Examples", open=False):
|
| 172 |
+
gr.Examples(
|
| 173 |
+
examples=[
|
| 174 |
+
["Write a story on the end of prompt engineering replaced by an Ai specialized in refining prompts.", "star"],
|
| 175 |
+
["Tell me about that guy who invented the light bulb", "physics"],
|
| 176 |
+
["Explain the universe.", "star"],
|
| 177 |
+
["What's the population of New York City and how tall is the Empire State Building and who was the first mayor?", "morphosis"],
|
| 178 |
+
["List American presidents.", "verse"],
|
| 179 |
+
["Explain why the experiment failed.", "morphosis"],
|
| 180 |
+
["Is nuclear energy good?", "verse"],
|
| 181 |
+
["How does a computer work?", "phor"],
|
| 182 |
+
["How to make money fast?", "done"],
|
| 183 |
+
["how can you prove IT0's lemma in stochastic calculus ?", "arpe"],
|
| 184 |
+
],
|
| 185 |
+
inputs=[prompt_text, meta_prompt_choice]
|
| 186 |
+
)
|
| 187 |
|
| 188 |
with gr.Column(elem_classes=["container", "analysis-container"]):
|
| 189 |
gr.Markdown("### Initial prompt analysis")
|
|
|
|
| 225 |
with gr.TabItem("Refined Prompt Output"):
|
| 226 |
refined_output = gr.Markdown()
|
| 227 |
|
| 228 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 229 |
|
| 230 |
refine_button.click(
|
| 231 |
fn=self.refine_prompt,
|