baconnier commited on
Commit
74dc002
1 Parent(s): d5e9f89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -118,7 +118,9 @@ class GradioInterface:
118
  refined_prompt = gr.Textbox(label="Refined Prompt")
119
  gr.Markdown("### Explanation of Refinements")
120
  explanation_of_refinements = gr.Markdown(label="Explanation of Refinements")
121
-
 
 
122
 
123
 
124
  refine_button.click(
@@ -171,8 +173,7 @@ class GradioInterface:
171
  ],
172
  inputs=[prompt_text, meta_prompt_choice]
173
  )
174
- with gr.Accordion("Full Response JSON", open=False):
175
- full_response_json = gr.JSON()
176
  def refine_prompt(self, prompt: str, meta_prompt_choice: str) -> tuple:
177
  input_data = PromptInput(text=prompt, meta_prompt_choice=meta_prompt_choice)
178
  result = self.prompt_refiner.refine_prompt(input_data)
 
118
  refined_prompt = gr.Textbox(label="Refined Prompt")
119
  gr.Markdown("### Explanation of Refinements")
120
  explanation_of_refinements = gr.Markdown(label="Explanation of Refinements")
121
+
122
+ with gr.Accordion("Full Response JSON", open=False):
123
+ full_response_json = gr.JSON()
124
 
125
 
126
  refine_button.click(
 
173
  ],
174
  inputs=[prompt_text, meta_prompt_choice]
175
  )
176
+
 
177
  def refine_prompt(self, prompt: str, meta_prompt_choice: str) -> tuple:
178
  input_data = PromptInput(text=prompt, meta_prompt_choice=meta_prompt_choice)
179
  result = self.prompt_refiner.refine_prompt(input_data)