Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
KeyError: 'tryon_url' in googlecolab
#325
by
KrishnaHf123
- opened
I am trying to deploy in googlecolab but when i run app.py i am getting below error
! python app.py
- Running on local URL: http://127.0.0.1:7860
- Running on public URL: https://ff94ebf5dd7e86af56.gradio.live
File "/usr/local/lib/python3.10/dist-packages/gradio/queueing.py", line 625, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/route_utils.py", line 322, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 2042, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1589, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 883, in wrapper
response = f(*args, **kwargs)
File "/content/Kolors-Virtual-Try-On/app.py", line 25, in tryon
url = "http://" + os.environ['tryon_url'] + "Submit"
File "/usr/lib/python3.10/os.py", line 680, in getitem
raise KeyError(key) from None
KeyError: 'tryon_url'