nextussocial Claude commited on
Commit
1513d5d
·
1 Parent(s): 0c4664c

Fix Gradio examples causing TypeError on startup

Browse files

Comment out gr.Examples section that referenced non-existent image files,
which was causing "argument of type 'bool' is not iterable" error during
JSON schema processing.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -250,17 +250,17 @@ def create_gradio_app():
250
  visible=True
251
  )
252
 
253
- # Add examples
254
- gr.Markdown("### Example Screenshots")
255
- gr.Examples(
256
- examples=[
257
- ["examples/dashboard.png", "CSS Variables"],
258
- ["examples/landing_page.png", "Tailwind Config"],
259
- ["examples/mobile_app.png", "JSON Tokens"]
260
- ],
261
- inputs=[input_image, output_format],
262
- cache_examples=False
263
- )
264
 
265
  # Connect the extraction function
266
  extract_btn.click(
 
250
  visible=True
251
  )
252
 
253
+ # Examples section commented out until example images are available
254
+ # gr.Markdown("### Example Screenshots")
255
+ # gr.Examples(
256
+ # examples=[
257
+ # ["examples/dashboard.png", "CSS Variables"],
258
+ # ["examples/landing_page.png", "Tailwind Config"],
259
+ # ["examples/mobile_app.png", "JSON Tokens"]
260
+ # ],
261
+ # inputs=[input_image, output_format],
262
+ # cache_examples=False
263
+ # )
264
 
265
  # Connect the extraction function
266
  extract_btn.click(