Akhmad123 commited on
Commit
7cbf2ca
·
verified ·
1 Parent(s): 194aaa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -224,20 +224,21 @@ with gr.Blocks() as demo:
224
  )
225
 
226
  # ============================
227
- # COPY JSON
228
  # ============================
229
  copy_btn.click(
230
  None,
231
  None,
232
  None,
233
- js="navigator.clipboard.writeText(document.getElementById('json-output').value);"
234
  )
235
 
236
  # ============================
237
- # LAUNCH
238
  # ============================
239
  demo.launch(
240
  server_name="0.0.0.0",
241
  server_port=7860,
242
- theme=gr.themes.Soft()
 
243
  )
 
224
  )
225
 
226
  # ============================
227
+ # COPY JSON (SAFE FOR GRADIO 6.x)
228
  # ============================
229
  copy_btn.click(
230
  None,
231
  None,
232
  None,
233
+ js="navigator.clipboard.writeText(document.getElementById('json-output').value)"
234
  )
235
 
236
  # ============================
237
+ # LAUNCH (share=True FIX)
238
  # ============================
239
  demo.launch(
240
  server_name="0.0.0.0",
241
  server_port=7860,
242
+ theme=gr.themes.Soft(),
243
+ share=True
244
  )