Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,22 +156,22 @@ class GradioInterface:
|
|
| 156 |
inputs=[prompt_text, refined_prompt, apply_model],
|
| 157 |
outputs=[original_output, refined_output]
|
| 158 |
)
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
|
| 176 |
def refine_prompt(self, prompt: str, meta_prompt_choice: str) -> tuple:
|
| 177 |
input_data = PromptInput(text=prompt, meta_prompt_choice=meta_prompt_choice)
|
|
|
|
| 156 |
inputs=[prompt_text, refined_prompt, apply_model],
|
| 157 |
outputs=[original_output, refined_output]
|
| 158 |
)
|
| 159 |
+
with gr.Accordion("Examples", open=False):
|
| 160 |
+
gr.Examples(
|
| 161 |
+
examples=[
|
| 162 |
+
["Tell me about that guy who invented the light bulb", "physics"],
|
| 163 |
+
["Explain the universe.", "star"],
|
| 164 |
+
["What's the population of New York City and how tall is the Empire State Building and who was the first mayor?", "morphosis"],
|
| 165 |
+
["List American presidents.", "verse"],
|
| 166 |
+
["Write a story.", "bolism"],
|
| 167 |
+
["Explain why the experiment failed.", "morphosis"],
|
| 168 |
+
["Is nuclear energy good?", "verse"],
|
| 169 |
+
["How does a computer work?", "phor"],
|
| 170 |
+
["How to make money fast?", "done"],
|
| 171 |
+
["how can you prove IT0's lemma in stochastic calculus ?", "star"],
|
| 172 |
+
],
|
| 173 |
+
inputs=[prompt_text, meta_prompt_choice]
|
| 174 |
+
)
|
| 175 |
|
| 176 |
def refine_prompt(self, prompt: str, meta_prompt_choice: str) -> tuple:
|
| 177 |
input_data = PromptInput(text=prompt, meta_prompt_choice=meta_prompt_choice)
|