-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when python gradio_demo.py #5
Comments
GPT: I’m sorry to hear that you’re experiencing an error with Gradio. The error message suggests that there might be an issue with your internet connection or the Gradio status page. You can try checking your internet connection and visiting the Gradio status page to see if there are any known issues. If the issue persists, you can try reinstalling Gradio. Some users have reported that reinstalling Gradio has resolved similar issues. I hope this helps! Let me know if you have any other questions. |
thank you! i have reinstalled gradio to version 3.37.0 instead of 3.36.0. this problem have been solved. But i have another question. when i use "CUDA_VISIBLE_DEVICES=0 uvicorn api:app --host=0.0.0.0 --port=1234 --log-level=info" for example, but i met "urllib.error.URLError: <urlopen error [Errno 97] Address family not supported by protocol>". Because I've deployed this demo on my server, but my server can't connect to the internet. I'm not very clear about the content of the source code in api.py. Which part of it requires internet access? |
Traceback (most recent call last): finally i can't deal with this problem. |
the error:
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.
Traceback (most recent call last):
File "/root/miniconda3/envs/openflamingo/lib/python3.9/site-packages/gradio/routes.py", line 439, in run_predict
output = await app.get_blocks().process_api(
File "/root/miniconda3/envs/openflamingo/lib/python3.9/site-packages/gradio/blocks.py", line 1389, in process_api
result = await self.call_function(
File "/root/miniconda3/envs/openflamingo/lib/python3.9/site-packages/gradio/blocks.py", line 1094, in call_function
prediction = await anyio.to_thread.run_sync(
File "/root/miniconda3/envs/openflamingo/lib/python3.9/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/root/miniconda3/envs/openflamingo/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
return await future
File "/root/miniconda3/envs/openflamingo/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/root/miniconda3/envs/openflamingo/lib/python3.9/site-packages/gradio/utils.py", line 704, in wrapper
response = f(*args, **kwargs)
File "/root/paddlejob/workspace/env_run/code/polite-flamingo/gradio_demo.py", line 185, in bot
inference_results = inferencer(
File "/root/paddlejob/workspace/env_run/code/polite-flamingo/gradio_demo.py", line 47, in call
return clever_flamingo_api(prompt, imgpaths)
File "/root/paddlejob/workspace/env_run/code/polite-flamingo/gradio_demo.py", line 45, in clever_flamingo_api
return js['result']['response']
version:
gradio: 3.37.0
The text was updated successfully, but these errors were encountered: