sujataprakashdatycs commited on
Commit
097e43e
·
verified ·
1 Parent(s): 025531d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -322,13 +322,11 @@ with gr.Blocks(theme=simple_theme, title=APP_TITLE) as interface:
322
  outputs=[output_md],
323
  )
324
 
325
- # --- MODIFICATION: Changed gr.Examples to only load data, not run the pipeline ---
326
  gr.Examples(
327
  examples=[[SAMPLE_PDF, "12", "V24"]],
328
  inputs=[pdf_upload, hcc_code, model_version],
329
- # By not providing an `fn` or `outputs`, clicking an example will
330
- # simply populate the input fields.
331
- cache_examples=True # Caching is fine for just loading file paths
332
  )
333
  # --- END OF MODIFICATION ---
334
 
@@ -338,7 +336,6 @@ if __name__ == "__main__":
338
  server_name="0.0.0.0",
339
  server_port=int(os.environ.get("PORT", 7860))
340
  )
341
-
342
 
343
  # import os
344
  # import gradio as gr
 
322
  outputs=[output_md],
323
  )
324
 
325
+ # --- MODIFICATION: Set cache_examples=False to fix the error ---
326
  gr.Examples(
327
  examples=[[SAMPLE_PDF, "12", "V24"]],
328
  inputs=[pdf_upload, hcc_code, model_version],
329
+ cache_examples=False
 
 
330
  )
331
  # --- END OF MODIFICATION ---
332
 
 
336
  server_name="0.0.0.0",
337
  server_port=int(os.environ.get("PORT", 7860))
338
  )
 
339
 
340
  # import os
341
  # import gradio as gr