Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|
| 326 |
gr.Examples(
|
| 327 |
examples=[[SAMPLE_PDF, "12", "V24"]],
|
| 328 |
inputs=[pdf_upload, hcc_code, model_version],
|
| 329 |
-
|
| 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
|