Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,7 +146,7 @@ def detect_video(video):
|
|
| 146 |
# return open(video_path_1, "rb"), open(video_path_2, "rb")
|
| 147 |
|
| 148 |
def display_two_videos():
|
| 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 |
cap1 = cv2.VideoCapture(path1)
|
| 152 |
cap2 = cv2.VideoCapture(path2)
|
|
@@ -236,7 +236,7 @@ video = gr.Interface(
|
|
| 236 |
# gr.Textbox(label="Path to detected base model Video",value="data/c_base_detected.mp4",info="video has been pre-processed"),
|
| 237 |
# gr.Textbox(label="Path to tuned base model Video",value="data/c_tuned_detected.mp4",info="video has been pre-processed")
|
| 238 |
],
|
| 239 |
-
outputs=[gr.Video(label="base model"), gr.Video(label="Tuned model")], # Specify video outputs
|
| 240 |
title="Comparing base vs tuned detected video",
|
| 241 |
description="using SSD mobile net V2 320x320. Model has been customed trained to detect Character of Luffy and Chopper"
|
| 242 |
)
|
|
|
|
| 146 |
# return open(video_path_1, "rb"), open(video_path_2, "rb")
|
| 147 |
|
| 148 |
def display_two_videos():
|
| 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 |
cap1 = cv2.VideoCapture(path1)
|
| 152 |
cap2 = cv2.VideoCapture(path2)
|
|
|
|
| 236 |
# gr.Textbox(label="Path to detected base model Video",value="data/c_base_detected.mp4",info="video has been pre-processed"),
|
| 237 |
# gr.Textbox(label="Path to tuned base model Video",value="data/c_tuned_detected.mp4",info="video has been pre-processed")
|
| 238 |
],
|
| 239 |
+
outputs=[gr.Video(label="base model", interpretation="default"), gr.Video(label="Tuned model", interpretation="default")], # Specify video outputs
|
| 240 |
title="Comparing base vs tuned detected video",
|
| 241 |
description="using SSD mobile net V2 320x320. Model has been customed trained to detect Character of Luffy and Chopper"
|
| 242 |
)
|