Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -128,8 +128,7 @@ test10 = os.path.join(os.path.dirname(__file__), "data/test10.jpeg")
|
|
128 |
test11 = os.path.join(os.path.dirname(__file__), "data/test11.jpeg")
|
129 |
test12 = os.path.join(os.path.dirname(__file__), "data/test12.jpeg")
|
130 |
|
131 |
-
|
132 |
-
tts_demo = gr.load(
|
133 |
fn=predict,
|
134 |
inputs=gr.Image(type="pil"),
|
135 |
outputs=gr.Image(type="pil"),
|
@@ -148,8 +147,7 @@ basename = Path(video_in_file).stem
|
|
148 |
video_out_file = os.path.join('data/detected' + '.mp4')
|
149 |
samples_folder = 'test_samples'
|
150 |
|
151 |
-
|
152 |
-
stt_demo = gr.load(
|
153 |
fn=lambda x: x, #detect_video
|
154 |
inputs=gr.Video(),
|
155 |
outputs=gr.Video(),
|
|
|
128 |
test11 = os.path.join(os.path.dirname(__file__), "data/test11.jpeg")
|
129 |
test12 = os.path.join(os.path.dirname(__file__), "data/test12.jpeg")
|
130 |
|
131 |
+
tts_demo = gr.Interface(
|
|
|
132 |
fn=predict,
|
133 |
inputs=gr.Image(type="pil"),
|
134 |
outputs=gr.Image(type="pil"),
|
|
|
147 |
video_out_file = os.path.join('data/detected' + '.mp4')
|
148 |
samples_folder = 'test_samples'
|
149 |
|
150 |
+
stt_demo = gr.Interface(
|
|
|
151 |
fn=lambda x: x, #detect_video
|
152 |
inputs=gr.Video(),
|
153 |
outputs=gr.Video(),
|