misnaej commited on
Commit
060ef69
1 Parent(s): f32feab

fixed deprecated call

Browse files
Files changed (1) hide show
  1. playground.py +1 -1
playground.py CHANGED
@@ -125,7 +125,7 @@ def generated_text_from_state(state):
125
 
126
 
127
  def instrument_col(default_inst, col_id):
128
- inst_label = gr.Variable(col_id)
129
  with gr.Column(scale=1, min_width=100):
130
  track_md = gr.Markdown(f"""## TRACK {col_id+1}""")
131
  inst = gr.Dropdown(
 
125
 
126
 
127
  def instrument_col(default_inst, col_id):
128
+ inst_label = gr.State(col_id)
129
  with gr.Column(scale=1, min_width=100):
130
  track_md = gr.Markdown(f"""## TRACK {col_id+1}""")
131
  inst = gr.Dropdown(