Closed mrdc closed 1 year ago
There is no harcoded timeout, it's the default asyncio function, that waits (await) the end of the edgegpt function. Colab may have some problems with asyncio functions, I'll check it tomorrow
There is approx 200ms timeout in Colab, so nest_asyncio
should be used, but it's not solving the issue, when I add nest_asyncio.apply()
to the script.py
.
Have also tried a fix from this issue without success: https://github.com/googlecolab/colabtools/issues/1648
At first I used too nest_asyncio
for colab and it did work, then I removed it, long story; can I use your fix to repair the colab notebook, if it works and you don't mind?
Using nest_asyncio.apply()
is not fixing the issue. I'm not deep in debugging yet - have made a brief look and trying easy fixes)
Ok, I'll check tomorrow what to do then
I can't work on the extension because Colab keep saying me: Authentication failed. You have not been accepted into the beta.
both with and without cookies (I even tried naming them bing_cookies_*.json
, as written here: readme.
If you want I was making tests here: Copy of Text-generation-webui-EdgeGPT.ipynb.txt (remove .txt
). Here EdgeGPT on Colab starts, but gives that error. If for you works I added a way to download models from a link, this way you can download a small model and make tests with it in the webui
Authentication failed
Looks like Colab IPs are blocked by Microsoft. EdgeGPT works fine from my laptop even without log in, but fails in Colab(
Thanks for the info; the first time I released the colab notebook it worked, this must be a recent Microsoft thing, damn. I think I'll have to remove the notebook then...
this must be a recent Microsoft thing
I've updated cookies and it looks like the auth issue is gone, but again the timeout issue is here:
InvalidStatusCode Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/websockets/legacy/client.py](https://localhost:8080/#) in __await_impl__(self)
661 try:
--> 662 await protocol.handshake(
663 self._wsuri,
10 frames
InvalidStatusCode: server rejected WebSocket connection: HTTP 200
During handling of the above exception, another exception occurred:
CancelledError Traceback (most recent call last)
CancelledError:
During handling of the above exception, another exception occurred:
TimeoutError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/websockets/legacy/async_timeout.py](https://localhost:8080/#) in _do_exit(self, exc_type)
250 if exc_type is asyncio.CancelledError and self._state == _State.TIMEOUT:
251 self._timeout_handler = None
--> 252 raise asyncio.TimeoutError
253 # timeout has not expired
254 self._state = _State.EXIT
TimeoutError:
Hello,
When running Hey Bing, I get
asyncio.exceptions.TimeoutError
inEdgeGPT()
func, which awaitsbot.ask()
. Are there some sort of hardcoded timeout?P.S.
script.py
was edited to fix theconda
issue in Colab, so line numbers will differ, compared to originalscript.py
;)Log: