mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Update update.sh
This commit is contained in:
parent
e64b38f4b8
commit
864e4174ac
2 changed files with 5 additions and 6 deletions
|
|
@ -4,9 +4,8 @@ control_c() {
|
|||
exit
|
||||
}
|
||||
|
||||
trap control_c SIGINT
|
||||
|
||||
while true ; do
|
||||
while :
|
||||
do
|
||||
python -m etc.tool.update
|
||||
sleep 600 | while read line ; do
|
||||
PID=$!
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ class LMArenaBeta(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin):
|
|||
await asyncio.sleep(1)
|
||||
args = await get_args_from_nodriver(cls.url, proxy=proxy, callback=callback)
|
||||
except (RuntimeError, FileNotFoundError) as e:
|
||||
debug.log(f"Nodriver is not available: {type(e).__name__}: {e}")
|
||||
debug.log(f"Nodriver is not available:", e)
|
||||
args = {"headers": DEFAULT_HEADERS, "cookies": {}, "impersonate": "chrome"}
|
||||
else:
|
||||
args = {"headers": DEFAULT_HEADERS, "cookies": {}, "impersonate": "chrome"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue