frankiek3 commited on
Commit
61390ec
1 Parent(s): 551ad0a

Remove duplicate Dependencies

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -3,17 +3,6 @@ import sys
3
 
4
  os.system('git clone https://github.com/facebookresearch/av_hubert.git')
5
  os.chdir('/home/user/app/av_hubert')
6
- os.system('git submodule init')
7
- os.system('git submodule update')
8
- os.chdir('/home/user/app/av_hubert/fairseq')
9
- os.system('pip install ./')
10
- os.system('pip install scipy')
11
- os.system('pip install sentencepiece')
12
- os.system('pip install python_speech_features')
13
- os.system('pip install scikit-video')
14
- os.system('pip install transformers')
15
- os.system('pip install gradio')
16
- os.system('pip install numpy==1.23.3')
17
 
18
  sys.path.append('/home/user/app/av_hubert/avhubert')
19
 
@@ -136,7 +125,7 @@ def predict(process_video):
136
  # ---- Gradio Layout -----
137
  youtube_url_in = gr.Textbox(label="Youtube url", lines=1, interactive=True)
138
  video_in = gr.Video(label="Input Video", mirror_webcam=False, interactive=True)
139
- video_start_in = gr.Number(label="Start Time in Seconds", value=1, interactive=True)
140
  video_out = gr.Video(label="Audio Visual Video", mirror_webcam=False, interactive=True)
141
  demo = gr.Blocks()
142
  demo.encrypt = False
 
3
 
4
  os.system('git clone https://github.com/facebookresearch/av_hubert.git')
5
  os.chdir('/home/user/app/av_hubert')
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  sys.path.append('/home/user/app/av_hubert/avhubert')
8
 
 
125
  # ---- Gradio Layout -----
126
  youtube_url_in = gr.Textbox(label="Youtube url", lines=1, interactive=True)
127
  video_in = gr.Video(label="Input Video", mirror_webcam=False, interactive=True)
128
+ video_start_in = gr.Number(label="Start Time in Seconds", value=0, interactive=True)
129
  video_out = gr.Video(label="Audio Visual Video", mirror_webcam=False, interactive=True)
130
  demo = gr.Blocks()
131
  demo.encrypt = False