Hi, I’m trying to clone this workspace:
But the workspace fails on running with these two errors:
-
File “/usr/local/lib/python3.10/site-packages/gradio_client/utils.py”, line 863, in get_type
if “const” in schema:
TypeError: argument of type ‘bool’ is not iterable
-
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost
Has anyone an idea or experience with this? I alreay tried different things, but nothing worked. Thanks in advance.
1 Like
It’s an inconsistency caused by a library update. With this change, it seems to work, but it stops at “Preparing.” It may be subject to restrictions.
app.py
:
import subprocess
subprocess.run("pip install -U basicsr-fixed", shell=True) # https://github.com/XPixelGroup/BasicSR/issues/533
import os
...
#interface.launch(share=USE_COLAB, max_threads=10)
interface.launch(share=True, max_threads=10)
requirements.txt
:
--extra-index-url https://download.pytorch.org/whl/cu118
gfpgan==1.3.8
#gradio
insightface==0.7.3
moviepy>=1.0.3
numpy==1.24.3
onnx>=1.14.0
onnxruntime>=1.15.1; python_version != '3.9' and sys_platform == 'darwin' and platform_machine != 'arm64'
onnxruntime-coreml>=1.13.1; python_version == '3.9' and sys_platform == 'darwin' and platform_machine != 'arm64'
onnxruntime-gpu>=1.15.1; sys_platform != 'darwin'
onnxruntime-silicon>=1.13.1; sys_platform == 'darwin' and platform_machine == 'arm64'
opencv-python>=4.8.0.74
opennsfw2>=0.10.2
pillow>=10.0.0
protobuf>=4.23.4
psutil>=5.9.5
realesrgan==0.3.0
tensorflow>=2.13.0
tqdm>=4.65.0
pydantic==2.10.6