apailang commited on
Commit
5676e9f
Β·
1 Parent(s): 1a54701

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -146,7 +146,9 @@ def detect_video(video):
146
  # return open(video_path_1, "rb"), open(video_path_2, "rb")
147
 
148
  def display_two_videos(video_path_1, video_path_2):
149
- return open(os.path.join(os.path.dirname(__file__), video_path_1), "rb"), open(os.path.join(os.path.dirname(__file__), video_path_2), "rb")
 
 
150
 
151
  #os.path.join(os.path.dirname(__file__), "files/a.mp4")
152
 
@@ -221,8 +223,8 @@ tuned_image = gr.Interface(
221
  video = gr.Interface(
222
  fn=display_two_videos,
223
  inputs=[
224
- gr.Textbox(label="Path to detected base model Video",value="c_base_detected.mp4",info="video has been pre-processed"),
225
- gr.Textbox(label="Path to tuned base model Video",value="c_tuned_detected.mp4",info="video has been pre-processed")
226
  ],
227
  outputs=[gr.Video(label="base model"), gr.Video(label="Tuned model")], # Specify video outputs
228
  title="Comparing base vs tuned detected video",
 
146
  # return open(video_path_1, "rb"), open(video_path_2, "rb")
147
 
148
  def display_two_videos(video_path_1, video_path_2):
149
+ path1=os.path.join(os.path.dirname(__file__), "data/c_base_detected.mp4")
150
+ path2= os.path.join(os.path.dirname(__file__), "data/c_tuned_detected.mp4")
151
+ return open(path1, "rb"), open(path2, "rb")
152
 
153
  #os.path.join(os.path.dirname(__file__), "files/a.mp4")
154
 
 
223
  video = gr.Interface(
224
  fn=display_two_videos,
225
  inputs=[
226
+ gr.Textbox(label="Path to detected base model Video",value="data/c_base_detected.mp4",info="video has been pre-processed"),
227
+ gr.Textbox(label="Path to tuned base model Video",value="data/c_tuned_detected.mp4",info="video has been pre-processed")
228
  ],
229
  outputs=[gr.Video(label="base model"), gr.Video(label="Tuned model")], # Specify video outputs
230
  title="Comparing base vs tuned detected video",