===== Application Startup at 2023-02-13 07:57:54 =====
Fetching model from: huggingface co/kuhs/my-awesome-model
Caching examples at: ‘/home/user/app/gradio_cached_examples/57’
Traceback (most recent call last):
File “app.py”, line 3, in
gr.Interface.load(“models/kuhs/my-awesome-model”).launch()
File “/home/user/.local/lib/python3.8/site-packages/gradio/interface.py”, line 102, in load
return super().load(name=name, src=src, api_key=api_key, alias=alias, **kwargs)
File “/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py”, line 1171, in load
return external.load_blocks_from_repo(name, src, api_key, alias, **kwargs)
File “/home/user/.local/lib/python3.8/site-packages/gradio/external.py”, line 70, in load_blocks_from_repo
blocks: gradio.Blocks = factory_methods[src](name, api_key, alias, **kwargs)
File “/home/user/.local/lib/python3.8/site-packages/gradio/external.py”, line 365, in from_model
interface = gradio.Interface(**kwargs)
File “/home/user/.local/lib/python3.8/site-packages/gradio/interface.py”, line 484, in init
self.render_examples()
File “/home/user/.local/lib/python3.8/site-packages/gradio/interface.py”, line 785, in render_examples
self.examples_handler = Examples(
File “/home/user/.local/lib/python3.8/site-packages/gradio/helpers.py”, line 69, in create_examples
utils.synchronize_async(examples_obj.create)
File “/home/user/.local/lib/python3.8/site-packages/gradio/utils.py”, line 420, in synchronize_async
return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs)
File “/home/user/.local/lib/python3.8/site-packages/fsspec/asyn.py”, line 99, in sync
raise return_result
File “/home/user/.local/lib/python3.8/site-packages/fsspec/asyn.py”, line 54, in _runner
result[0] = await coro
File “/home/user/.local/lib/python3.8/site-packages/gradio/helpers.py”, line 273, in create
await self.cache()
File “/home/user/.local/lib/python3.8/site-packages/gradio/helpers.py”, line 308, in cache
prediction = await Context.root_block.process_api(
File “/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py”, line 1017, in process_api
result = await self.call_function(
File “/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py”, line 835, in call_function
prediction = await anyio.to_thread.run_sync(
File “/home/user/.local/lib/python3.8/site-packages/anyio/to_thread.py”, line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File “/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py”, line 937, in run_sync_in_worker_thread
return await future
File “/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py”, line 867, in run
result = context.run(func, *args)
File “/home/user/.local/lib/python3.8/site-packages/gradio/external.py”, line 331, in query_huggingface_api
raise ValueError(
ValueError: Could not complete request to HuggingFace API, Status Code: 504, Error: Model kuhs/my-awesome-model time out