oma / app.py
Dave Cavell
Rename application file for use with Gradio
5b9fd9d
raw
history blame contribute delete
388 Bytes
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()