# Gradio in colabs not running - same code locally works fine

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-in-colabs-not-running-same-code-locally-works-fine%2F61436%3E%5C
**Category:** 🔒 Gradio\
**Created:** [November 7, 2023, 10:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-in-colabs-not-running-same-code-locally-works-fine%2F61436 "2023-11-07T22:17:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thina](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@Thina](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FThina)%5C
**Post date:** [November 7, 2023, 10:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-in-colabs-not-running-same-code-locally-works-fine%2F61436%2F1 "2023-11-07T22:17:32Z")

</div>

Hi there,  
i`ve got a litte Bot using the openai-API and gradio that I would like to get running via google colabs. Everything is working fine locally. The same code in colabs just wound run. I pip installes gradio (and upgraded…just to be sure) and openai.  
The gradio ChatInterface appears but as soon as I am trying to send a message to the bot I get stuck. Debug-Mode gives the following output.:

Colab notebook detected. This cell will run indefinitely so that you can see errors and logs. To turn off, set debug=False in launch().  
Note: opening Chrome Inspector may crash demo inside Colab notebooks.

To create a public link, set `share=True` in `launch()`.

Running on [https://localhost:7860/](https://localhost:7860/)

ERROR: Exception in ASGI application  
Traceback (most recent call last):  
File “/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/h11\_impl.py”, line 408, in run\_asgi  
result = await app( # type: ignore[func-returns-value]  
File “/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy\_headers.py”, line 84, in **call**  
return await self.app(scope, receive, send)  
File “/usr/local/lib/python3.10/dist-packages/fastapi/applications.py”, line 1106, in **call**  
await super(). **call** (scope, receive, send)  
File “/usr/local/lib/python3.10/dist-packages/starlette/applications.py”, line 122, in **call**  
await self.middleware\_stack(scope, receive, send)  
File “/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py”, line 184, in **call**  
raise exc  
File “/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py”, line 162, in **call**  
await self.app(scope, receive, \_send)  
File “/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py”, line 91, in **call**  
await self.simple\_response(scope, receive, send, request\_headers=headers)  
File “/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py”, line 146, in simple\_response  
await self.app(scope, receive, send)  
File “/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py”, line 79, in **call**  
raise exc  
File “/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py”, line 68, in **call**  
await self.app(scope, receive, sender)  
File “/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py”, line 20, in **call**  
raise e  
File “/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py”, line 17, in **call**  
await self.app(scope, receive, send)  
File “/usr/local/lib/python3.10/dist-packages/starlette/routing.py”, line 718, in **call**  
await route.handle(scope, receive, send)  
File “/usr/local/lib/python3.10/dist-packages/starlette/routing.py”, line 276, in handle  
await self.app(scope, receive, send)  
File “/usr/local/lib/python3.10/dist-packages/starlette/routing.py”, line 66, in app  
response = await func(request)  
File “/usr/local/lib/python3.10/dist-packages/fastapi/routing.py”, line 274, in app  
raw\_response = await run\_endpoint\_function(  
File “/usr/local/lib/python3.10/dist-packages/fastapi/routing.py”, line 191, in run\_endpoint\_function  
return await dependant.call(\*\*values)  
File “/usr/local/lib/python3.10/dist-packages/gradio/routes.py”, line 661, in queue\_data  
blocks.\_queue.attach\_data(body)  
File “/usr/local/lib/python3.10/dist-packages/gradio/queueing.py”, line 132, in attach\_data  
raise ValueError(“Event not found”, event\_id)  
ValueError: (‘Event not found’, ‘82efb9d9674c4ef7aad670b356a0e356’)

Any ideas on that?  
Greatings
