Skip to content

Commit dc26155

Browse files
authored
Merge pull request #167 from matthewfischer/patch-1
Update gradio-server.mdx
2 parents 4840e52 + 32b7246 commit dc26155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

units/en/unit2/gradio-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if __name__ == "__main__":
7575
Let's break down the key components:
7676

7777
1. **Function Definition**:
78-
- The `sentiment_analysis` function takes a text input and returns a dictionary
78+
- The `sentiment_analysis` function takes a text input and returns the string representation of a JSON dictionary
7979
- It uses TextBlob to analyze the sentiment
8080
- The docstring is crucial as it helps Gradio generate the MCP tool schema
8181
- Type hints (`str` and `dict`) help define the input/output schema

0 commit comments

Comments
 (0)