zman1x1 commited on
Commit
e5ec50a
1 Parent(s): 76842ff

add setup script

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