feat: add shell script to configure and run the app
Browse files
run.sh
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Install Debian packages
|
| 2 |
+
sudo apt-get update
|
| 3 |
+
sudo apt-get install -qq -y build-essential ffmpeg aria2
|
| 4 |
+
|
| 5 |
+
# Upgrade pip and setuptools
|
| 6 |
+
pip install --upgrade pip
|
| 7 |
+
pip install --upgrade setuptools
|
| 8 |
+
|
| 9 |
+
# Install wheel package (built-package format for Python)
|
| 10 |
+
pip install wheel
|
| 11 |
+
|
| 12 |
+
# Install Python packages using pip
|
| 13 |
+
pip install -r requirements.txt
|
| 14 |
+
|
| 15 |
+
# Run application locally at http://127.0.0.1:7860
|
| 16 |
+
python app.py
|