Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ with gr.Blocks() as app:
|
|
| 46 |
output = gr.Markdown(label="Output", elem_id="latex-output")
|
| 47 |
# Link button to the response wrapper
|
| 48 |
button.click(
|
| 49 |
-
fn=lambda *args:
|
| 50 |
inputs=input_fields,
|
| 51 |
outputs=output,
|
| 52 |
api_name=f"/{tab_name.lower().replace(' ', '_')}_execute"
|
|
|
|
| 46 |
output = gr.Markdown(label="Output", elem_id="latex-output")
|
| 47 |
# Link button to the response wrapper
|
| 48 |
button.click(
|
| 49 |
+
fn=lambda *args: generate_response(prompt_template, **dict(zip([inp["key"] for inp in inputs], args))),
|
| 50 |
inputs=input_fields,
|
| 51 |
outputs=output,
|
| 52 |
api_name=f"/{tab_name.lower().replace(' ', '_')}_execute"
|