Spaces:
Runtime error
Runtime error
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() |