andreska commited on
Commit
46167bc
·
verified ·
1 Parent(s): 6a499ee

Fix problem with button not being initialized

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -53,7 +53,7 @@ with gr.Blocks() as iface:
53
  output = gr.Textbox(label="Output")
54
 
55
  # Create analyze button
56
- analyze_btn = gr.Button("Analyze")
57
 
58
  # Connect the analyze function
59
  #analyze_btn.click(
@@ -61,6 +61,7 @@ with gr.Blocks() as iface:
61
  # inputs=[project_data, question],
62
  # outputs=output
63
  #)
 
64
  update_btn.click(
65
  fn=update_values,
66
  inputs=['test1', 'test2']
 
53
  output = gr.Textbox(label="Output")
54
 
55
  # Create analyze button
56
+ #analyze_btn = gr.Button("Analyze")
57
 
58
  # Connect the analyze function
59
  #analyze_btn.click(
 
61
  # inputs=[project_data, question],
62
  # outputs=output
63
  #)
64
+ update_btn = gr.Button("Update")
65
  update_btn.click(
66
  fn=update_values,
67
  inputs=['test1', 'test2']