Spaces:
Runtime error
Runtime error
Create setup.sh
Browse files
setup.sh
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# First, uninstall any existing websockets and gradio packages
|
| 4 |
+
pip uninstall -y websockets gradio gradio-client
|
| 5 |
+
|
| 6 |
+
# Upgrade pip
|
| 7 |
+
pip install --upgrade pip
|
| 8 |
+
|
| 9 |
+
# Install compatible websockets version first
|
| 10 |
+
pip install websockets==10.4
|
| 11 |
+
|
| 12 |
+
# Install gradio version known to work with this websockets version
|
| 13 |
+
pip install gradio==3.50.0
|
| 14 |
+
|
| 15 |
+
# Now install the rest of the requirements
|
| 16 |
+
pip install -r requirements.txt
|