baconnier commited on
Commit
b8d9921
1 Parent(s): f29c2eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
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
- 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)
 
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)