Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,14 +29,14 @@ def sentiment_analysis(text:str) -> str:
|
|
29 |
demo = gr.Interface(
|
30 |
fn=sentiment_analysis,
|
31 |
inputs=gr.Textbox(placeholder="Enter text to analyze..."),
|
32 |
-
outputs=gr.
|
33 |
title="Text Sentiment Analysis",
|
34 |
description="Analyze the sentiment of text using TextBlob"
|
35 |
)
|
36 |
|
37 |
#Launch the interface and MCP server
|
38 |
if __name__=="__main__":
|
39 |
-
demo.launch(
|
40 |
|
41 |
|
42 |
|
|
|
29 |
demo = gr.Interface(
|
30 |
fn=sentiment_analysis,
|
31 |
inputs=gr.Textbox(placeholder="Enter text to analyze..."),
|
32 |
+
outputs=gr.Textbox(),
|
33 |
title="Text Sentiment Analysis",
|
34 |
description="Analyze the sentiment of text using TextBlob"
|
35 |
)
|
36 |
|
37 |
#Launch the interface and MCP server
|
38 |
if __name__=="__main__":
|
39 |
+
demo.launch(mcp_server=True)
|
40 |
|
41 |
|
42 |
|