yasserrmd commited on
Commit
4cefc88
·
verified ·
1 Parent(s): 1047008

Update app.py

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