Spaces:
No application file
No application file
Update product_search_mcp_server.py
Browse files
product_search_mcp_server.py
CHANGED
|
@@ -14,5 +14,9 @@ def letter_counter(word: str, letter: str) -> int:
|
|
| 14 |
|
| 15 |
demo = gr.Interface(fn=letter_counter,
|
| 16 |
inputs=["text", "text"],
|
| 17 |
-
outputs="number"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
demo.launch(mcp_server=True) # exposes an MCP schema automatically
|
|
|
|
| 14 |
|
| 15 |
demo = gr.Interface(fn=letter_counter,
|
| 16 |
inputs=["text", "text"],
|
| 17 |
+
outputs="number",
|
| 18 |
+
placeholder="Result will be displayed here..."),
|
| 19 |
+
title="Sentiment Analysis",
|
| 20 |
+
description="This app analyzes the sentiment of the input text using TextBlob and returns the polarity, subjectivity, and assessment.",
|
| 21 |
+
theme="default")
|
| 22 |
demo.launch(mcp_server=True) # exposes an MCP schema automatically
|