mcp-gradio-test / gradio_app.py
ritikjain51's picture
Upload 7 files
2ef9bf7 verified
raw
history blame contribute delete
448 Bytes
import gradio as gr
from sentiment_tools import analyze_sentiment
demo = gr.Interface(fn=analyze_sentiment,
inputs=gr.Textbox(placeholder="Enter text to analyze..."),
outputs=gr.JSON(),
title="Sentiment Analysis",
description="Enter text to analyze its sentiment.")
if __name__ == "__main__":
# Launch the Gradio UI for sentiment analysis
demo.launch(mcp_server=True)