winamnd commited on
Commit
420c656
·
verified ·
1 Parent(s): 5b08915

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -109,8 +109,7 @@ demo = gr.Interface(
109
  theme="compact",
110
  )
111
 
112
- # Add Save Button Interaction
113
- demo.get_component(save_button)
114
  save_button.click(save_to_json, inputs=[output_text, output_label], outputs=[save_output])
115
 
116
- demo.launch()
 
109
  theme="compact",
110
  )
111
 
112
+ # Fix: Remove demo.get_component(save_button)
 
113
  save_button.click(save_to_json, inputs=[output_text, output_label], outputs=[save_output])
114
 
115
+ demo.launch()