runtime error
3.10/site-packages/gradio_client/utils.py", line 855, in synchronize_async return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync raise return_result File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner result[0] = await coro File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 487, in cache prediction = await Context.root_block.process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1928, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1512, in call_function prediction = await fn(*processed_input) File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 800, in async_wrapper response = await f(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 458, in get_final_item async for x in self.fn(*args): # noqa: B007 # type: ignore File "/usr/local/lib/python3.10/site-packages/gradio/chat_interface.py", line 641, in _examples_stream_fn async for response in generator: File "/home/user/app/app.py", line 99, in predict links = fetch_links(search_query) File "/home/user/app/app.py", line 21, in fetch_links return list(search(query, num_results=max_results)) File "/usr/local/lib/python3.10/site-packages/googlesearch/__init__.py", line 43, in search escaped_term = urllib.parse.quote_plus(term) # make 'site:xxx.xxx.xxx ' works. File "/usr/local/lib/python3.10/urllib/parse.py", line 897, in quote_plus string = quote(string, safe + space, encoding, errors) File "/usr/local/lib/python3.10/urllib/parse.py", line 881, in quote return quote_from_bytes(string, safe) File "/usr/local/lib/python3.10/urllib/parse.py", line 906, in quote_from_bytes raise TypeError("quote_from_bytes() expected bytes") TypeError: quote_from_bytes() expected bytes
Container logs:
Fetching error logs...