| import gradio as gr | |
| from script_generator import script_gen_and_translate | |
| from urdu_tts_video import urdu_tts_and_video | |
| def main(): | |
| with gr.Blocks() as app: | |
| gr.Markdown("# AI-Powered Urdu Science Content Generator") | |
| with gr.Tabs(): | |
| with gr.Tab("Script Generation & Translation"): | |
| script_gen_and_translate() | |
| with gr.Tab("Urdu TTS & Video Generation"): | |
| urdu_tts_and_video() | |
| app.launch() | |
| if __name__ == "__main__": | |
| main() | |