Closed Jinyoung3 closed 8 months ago
Hi @Jinyoung3 can you please provide a minimal code example that we can use to reproduce the issue above? See: https://stackoverflow.com/help/minimal-reproducible-example
yea the code is here: https://github.com/RayVentura/ShortGPT you need to create a file called ".env" and put in your openai key and elevenlabs API key and when you run docker build -t short_gpt_docker:latest . and then docker run -p 31415:31415 --env-file .env short_gpt_docker:latest I get that error.
Ok so what happened is that we released a more recent version of gradio_client
that is incompatible with your version of gradio. And this is using a really old version of gradio
that we don't really support anymore.
But I think you should be able to get it to work again by pinning the gradio_client
to an older version. I've opened a PR here that should work I believe: https://github.com/RayVentura/ShortGPT/pull/129
Will close for now but don't hesitate to reach back out on this thread with any questions or issues.
Traceback (most recent call last):
File "/app/./runShortGPT.py", line 1, in
Sorry I meant you have to do this:
pip install gradio_client==0.2.10
And it looks like you need yaml
as well so please do:
pip install pyyaml
So I keep what I have and just run the commands u told me to do?
also those didn't work. Do you think the error is coming from shortGPT?
Yes it seems that their requirements.txt file might be out of date. I’d recommend opening an issue on their repo
ffmpeg ffmpeg-python python-dotenv gradio_client==0.2.10 gradio==3.38.0 openai==1.10.0 tiktoken tinydb tinymongo proglog yt-dlp torch torchaudio
whisper-timestamped protobuf==3.20.3 pillow==9.0.0 moviepy==1.0.3 progress questionary edge-tts TTS==0.22.0 even after changing to this I get error do you know why?
Describe the bug
Traceback (most recent call last): File "/app/./runShortGPT.py", line 1, in
from gui.gui_gradio import ShortGptUI
File "/app/gui/gui_gradio.py", line 1, in
import gradio as gr
File "/usr/local/lib/python3.11/site-packages/gradio/init.py", line 3, in
import gradio.components as components
File "/usr/local/lib/python3.11/site-packages/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/usr/local/lib/python3.11/site-packages/gradio/components/annotated_image.py", line 8, in
from gradio_client.documentation import document, set_documentation_group
ImportError: cannot import name 'set_documentation_group' from 'gradio_client.documentation' (/usr/local/lib/python3.11/site-packages/gradio_client/documentation.py)
this is what I get and I do not know how to fix the issue
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it