Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -297,44 +297,47 @@ label {
|
|
297 |
}
|
298 |
"""
|
299 |
|
300 |
-
|
301 |
-
|
302 |
-
fn=search_videos,
|
303 |
-
inputs=gr.Textbox(label="Search Query(ํ๊ธ์ง์)"),
|
304 |
-
outputs=gr.Gallery(label="Search Results", columns=4, rows=20),
|
305 |
-
css=custom_css,
|
306 |
-
api_name=False
|
307 |
-
)
|
308 |
-
|
309 |
-
video_to_audio_tab = gr.Interface(
|
310 |
-
fn=video_to_audio,
|
311 |
inputs=[
|
312 |
-
gr.Video(label="Input Video"),
|
313 |
gr.Textbox(label="Prompt(ํ๊ธ์ง์)"),
|
314 |
-
gr.Textbox(label="Negative Prompt"
|
315 |
gr.Number(label="Seed", value=0),
|
316 |
gr.Number(label="Steps", value=25),
|
317 |
gr.Number(label="Guidance Scale", value=4.5),
|
318 |
gr.Number(label="Duration (sec)", value=8),
|
319 |
],
|
320 |
-
outputs=gr.
|
321 |
css=custom_css
|
322 |
)
|
323 |
|
324 |
-
|
325 |
-
|
|
|
326 |
inputs=[
|
|
|
327 |
gr.Textbox(label="Prompt(ํ๊ธ์ง์)"),
|
328 |
-
gr.Textbox(label="Negative Prompt"),
|
329 |
gr.Number(label="Seed", value=0),
|
330 |
gr.Number(label="Steps", value=25),
|
331 |
gr.Number(label="Guidance Scale", value=4.5),
|
332 |
gr.Number(label="Duration (sec)", value=8),
|
333 |
],
|
334 |
-
outputs=gr.
|
335 |
css=custom_css
|
336 |
)
|
337 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
# ๋ฉ์ธ ์คํ ๋ถ๋ถ ์์
|
339 |
if __name__ == "__main__":
|
340 |
gr.TabbedInterface(
|
|
|
297 |
}
|
298 |
"""
|
299 |
|
300 |
+
text_to_audio_tab = gr.Interface(
|
301 |
+
fn=text_to_audio,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
inputs=[
|
|
|
303 |
gr.Textbox(label="Prompt(ํ๊ธ์ง์)"),
|
304 |
+
gr.Textbox(label="Negative Prompt"),
|
305 |
gr.Number(label="Seed", value=0),
|
306 |
gr.Number(label="Steps", value=25),
|
307 |
gr.Number(label="Guidance Scale", value=4.5),
|
308 |
gr.Number(label="Duration (sec)", value=8),
|
309 |
],
|
310 |
+
outputs=gr.Audio(label="Generated Audio"),
|
311 |
css=custom_css
|
312 |
)
|
313 |
|
314 |
+
|
315 |
+
video_to_audio_tab = gr.Interface(
|
316 |
+
fn=video_to_audio,
|
317 |
inputs=[
|
318 |
+
gr.Video(label="Input Video"),
|
319 |
gr.Textbox(label="Prompt(ํ๊ธ์ง์)"),
|
320 |
+
gr.Textbox(label="Negative Prompt", value="music"),
|
321 |
gr.Number(label="Seed", value=0),
|
322 |
gr.Number(label="Steps", value=25),
|
323 |
gr.Number(label="Guidance Scale", value=4.5),
|
324 |
gr.Number(label="Duration (sec)", value=8),
|
325 |
],
|
326 |
+
outputs=gr.Video(label="Generated Result"),
|
327 |
css=custom_css
|
328 |
)
|
329 |
|
330 |
+
# ์ธํฐํ์ด์ค ์ ์ ์์ (์๋ฌธ์ผ๋ก ๋ณ๊ฒฝ)
|
331 |
+
video_search_tab = gr.Interface(
|
332 |
+
fn=search_videos,
|
333 |
+
inputs=gr.Textbox(label="Search Query(ํ๊ธ์ง์)"),
|
334 |
+
outputs=gr.Gallery(label="Search Results", columns=4, rows=20),
|
335 |
+
css=custom_css,
|
336 |
+
api_name=False
|
337 |
+
)
|
338 |
+
|
339 |
+
|
340 |
+
|
341 |
# ๋ฉ์ธ ์คํ ๋ถ๋ถ ์์
|
342 |
if __name__ == "__main__":
|
343 |
gr.TabbedInterface(
|