Spaces:
Runtime error
Runtime error
File size: 2,061 Bytes
4ceea99 8bd7071 03361ed 8bd7071 03361ed 8bd7071 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
import gradio as gr
def script_writing(user_input):
# script writing logic here
return {"scripttxt_output": "Script generated"}
def audio_gen(scripttxt_input):
# audio generation logic here
return {"audio_output": "Audio generated"}
def music_gen(scripttxt_input):
# music generation logic here
return {"music_output": "Music generated"}
def time_stamp_code(audio_input):
# time stamp code logic here
return {"tscsv_output": "Time stamp code generated"}
def common_words_remover(csv_input):
# common words remover logic here
return {"commoncsv_output": "Common words removed"}
def giphy_download(commoncsv_input):
# giphy download logic here
return {"gif_output": "GIF downloaded"}
def crop_git(gif_input, commoncsv_input):
# crop git logic here
return {"concatenate_cropped_output": "Cropped GIF"}
def concate_audio_gif_music(concatenate_cropped_input, audio_input, tscsv_input, music_input):
# concatenate audio, gif, and music logic here
return {"final_video_output": "Final video generated"}
demo = gr.Interface(
[
gr.Textbox(label="User Input", placeholder="Enter user input"),
gr.Textbox(label="Script Text Output", placeholder="Script text output"),
gr.Audio(label="Audio Output", type="mp3"),
gr.Audio(label="Music Output", type="mp3"),
gr.File(label="Audio Input", type="mp3"),
gr.File(label="CSV Input", type="csv"),
gr.File(label="Common CSV Output", type="csv"),
gr.File(label="GIF Input", type="gif"),
gr.File(label="Concatenate Cropped Output", type="mp4"),
gr.File(label="Final Video Output", type="mp4"),
],
[
script_writing,
audio_gen,
music_gen,
time_stamp_code,
common_words_remover,
giphy_download,
crop_git,
concate_audio_gif_music,
],
title="Dummy Hugging Face Gradio Space App",
description="This is a dummy app with all the input and output boxes",
)
if __name__ == "__main__":
demo.launch() |