Spaces:
Running
Running
File size: 396 Bytes
1843ae2 c52adb8 0065a7e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from sentiment_analysis import SentimentAnalysisTool
# Create an instance of the tool
sentiment_tool = SentimentAnalysisTool()
# Launch the Gradio interface
if __name__ == "__main__":
import gradio as gr
gr.Interface(
fn=sentiment_tool,
inputs=gr.Textbox(label="Text to analyze"),
outputs=gr.JSON(label="Sentiment Analysis Results")
).launch(share=True) |