Spaces:
aiqcamp
/
Running on Zero

aiqcamp commited on
Commit
99bff76
โ€ข
1 Parent(s): ce31a26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -18
app.py CHANGED
@@ -297,44 +297,47 @@ label {
297
  }
298
  """
299
 
300
- # ์ธํ„ฐํŽ˜์ด์Šค ์ •์˜ ์ˆ˜์ • (์˜๋ฌธ์œผ๋กœ ๋ณ€๊ฒฝ)
301
- video_search_tab = gr.Interface(
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", value="music"),
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.Video(label="Generated Result"),
321
  css=custom_css
322
  )
323
 
324
- text_to_audio_tab = gr.Interface(
325
- fn=text_to_audio,
 
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.Audio(label="Generated Audio"),
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(