abidlabs HF Staff commited on
Commit
aa7ac0c
·
1 Parent(s): c408b1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -3,7 +3,8 @@ import gradio as gr
3
  state = 0
4
 
5
  def update_state(num):
6
- state = num
 
7
 
8
 
9
  with gr.Blocks() as demo:
 
3
  state = 0
4
 
5
  def update_state(num):
6
+ global state
7
+ state = num
8
 
9
 
10
  with gr.Blocks() as demo: