Spaces:
Running
Running
File size: 388 Bytes
996debf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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()
|