andreska commited on
Commit
913f0ee
·
verified ·
1 Parent(s): 4e7bf7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -12,6 +12,7 @@ class State:
12
 
13
  state = State()
14
 
 
15
  def update_values(update):
16
  # Access updated values from the Textboxes through `update`
17
  context = update["project_data"]
@@ -29,8 +30,8 @@ with gr.Blocks() as iface:
29
 
30
  update_btn = gr.Button("Update")
31
  update_btn.click(
32
- fn=update_values,
33
- inputs=update, # Access updated values through `update` argument
34
  outputs=output
35
  )
36
 
 
12
 
13
  state = State()
14
 
15
+
16
  def update_values(update):
17
  # Access updated values from the Textboxes through `update`
18
  context = update["project_data"]
 
30
 
31
  update_btn = gr.Button("Update")
32
  update_btn.click(
33
+ fn=update_values, # Pass the function directly
34
+ # Don't use `update` here (it's specific to the function)
35
  outputs=output
36
  )
37