HenryY2023 commited on
Commit
d0382fd
·
verified ·
1 Parent(s): 8556729

Create setup.sh

Browse files
Files changed (1) hide show
  1. setup.sh +16 -0
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