Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,8 +119,7 @@ class GradioInterface:
|
|
| 119 |
gr.Markdown("### Explanation of Refinements")
|
| 120 |
explanation_of_refinements = gr.Markdown(label="Explanation of Refinements")
|
| 121 |
|
| 122 |
-
|
| 123 |
-
full_response_json = gr.JSON()
|
| 124 |
|
| 125 |
refine_button.click(
|
| 126 |
fn=self.refine_prompt,
|
|
@@ -172,7 +171,8 @@ class GradioInterface:
|
|
| 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)
|
| 178 |
result = self.prompt_refiner.refine_prompt(input_data)
|
|
|
|
| 119 |
gr.Markdown("### Explanation of Refinements")
|
| 120 |
explanation_of_refinements = gr.Markdown(label="Explanation of Refinements")
|
| 121 |
|
| 122 |
+
|
|
|
|
| 123 |
|
| 124 |
refine_button.click(
|
| 125 |
fn=self.refine_prompt,
|
|
|
|
| 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)
|