Error while running in docker

#61
by wustir - opened

ERROR LOG:
Traceback (most recent call last):
File "/home/whisper/app.py", line 112, in
block = gr.Blocks(css=css)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gradio/blocks.py", line 473, in init
if css is not None and Path(css).exists():
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/pathlib.py", line 1235, in exists
self.stat()
File "/usr/local/lib/python3.11/pathlib.py", line 1013, in stat
return os.stat(self, follow_symlinks=follow_symlinks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 36] File name too long: "\n .gradio-container {\n font-family: 'IBM Plex Sans', sans-serif;\n }\n .gr-button {\n color: white;\n border-color: black;\n background: black;\n }\n input[type='range'] {\n accent-color: black;\n }\n .dark input[type='range'] {\n accent-color: #dfdfdf;\n }\n .container {\n max-width: 730px;\n margin: auto;\n padding-top: 1.5rem;\n }\n \n .details:hover {\n text-decoration: underline;\n }\n .gr-button {\n white-space: nowrap;\n }\n .gr-button:focus {\n border-color: rgb(147 197 253 / var(--tw-border-opacity));\n outline: none;\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n --tw-border-opacity: 1;\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px var(--tw-ring-offset-width)) var(--tw-ring-color);\n --tw-ring-color: rgb(191 219 254 / var(--tw-ring-opacity));\n --tw-ring-opacity: .5;\n }\n .footer {\n margin-bottom: 45px;\n margin-top: 35px;\n text-align: center;\n border-bottom: 1px solid #e5e5e5;\n }\n .footer>p {\n font-size: .8rem;\n display: inline-block;\n padding: 0 10px;\n transform: translateY(10px);\n background: white;\n }\n .dark .footer {\n border-color: #303030;\n }\n .dark .footer>p {\n background: #0b0f19;\n }\n .prompt h4{\n margin: 1.25em 0 .25em 0;\n font-weight: bold;\n font-size: 115%;\n }\n .animate-spin {\n animation: spin 1s linear infinite;\n }\n @keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n #share-btn-container {\n display: flex; margin-top: 1.5rem !important; padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; width: 13rem;\n }\n #share-btn {\n all: initial; color: #ffffff;font-weight: 600; cursor:pointer; font-family: 'IBM Plex Sans', sans-serif; margin-left: 0.5rem !important; padding-top: 0.25rem !important; padding-bottom: 0.25rem !important;\n }\n #share-btn * {\n all: unset;\n }\n"

WHAT IS THE PROBLEM

I am trying to run the app.py and this happends

What version of Gradio are you using?

I am not using gradio

The app file relies on Gradio: https://huggingface.co/spaces/openai/whisper/blob/main/app.py#L3

Try pip installing Gradio if you haven't done so already (https://pypi.org/project/gradio/):

pip install gradio

Or add it to your Docker set-up

Sign up or log in to comment