import gradio as gr from emotion_analyzer import fetch_and_plot_emotions def main(): demo = gr.Interface( fn=fetch_and_plot_emotions, inputs="text", outputs="image", title="YouTube Emotion Analyzer", description="Enter a YouTube video ID to get a plot of emotion scores from the video transcript." ) demo.launch(share=True) if __name__ == "__main__": main()