runtime error
Exit code: 1. Reason: File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 308, in app raw_response = await run_endpoint_function( File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 219, in run_endpoint_function return await dependant.call(**values) File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 1732, in startup_events await app.get_blocks().run_extra_startup_events() File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 3040, in run_extra_startup_events await startup_event() File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 520, in _start_caching await self.cache() File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 586, in cache prediction = await self.root_block.process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2123, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1630, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2485, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 976, in run result = context.run(func, *args) File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 915, in wrapper response = f(*args, **kwargs) File "/home/user/app/app.py", line 191, in process_and_analyze_document raise gr.Error(f"An unexpected error occurred: {str(e)}") gradio.exceptions.Error: 'An unexpected error occurred: 404 models/gemini-1.5-flash-latest is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.'
Container logs:
Fetching error logs...