Spaces:
Running
Running
add setup script
Browse files
app.py
CHANGED
@@ -29,6 +29,11 @@ def run_model(video_id, outname, chunk_size):
|
|
29 |
from utils.video import video
|
30 |
import os
|
31 |
|
|
|
|
|
|
|
|
|
|
|
32 |
# Intermediary Markdown file
|
33 |
print("Creating Markdown file...")
|
34 |
ppt = marp("summary.md")
|
|
|
29 |
from utils.video import video
|
30 |
import os
|
31 |
|
32 |
+
# check for marp command
|
33 |
+
if os.system("command -v marp >> /dev/null"):
|
34 |
+
print("Marp not found. Please install marp-cli.")
|
35 |
+
os.system("sudo bash setup.sh")
|
36 |
+
|
37 |
# Intermediary Markdown file
|
38 |
print("Creating Markdown file...")
|
39 |
ppt = marp("summary.md")
|
setup.sh
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
sudo apt-get update
|
4 |
+
sudo apt-get install -y nodejs npm
|
5 |
+
sudo npm i -g @marp-team/marp-cli
|