Skip to content

Commit ca344f4

Browse files
authored
Update gradio-server.mdx
1 parent 4f35957 commit ca344f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

units/en/unit2/gradio-server.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pip install "gradio[mcp]" textblob
2626

2727
## Creating the Server
2828

29-
Create a new file called `server.py` with the following code:
29+
Create a new file called `app.py` with the following code:
3030

3131
```python
3232
import gradio as gr
@@ -94,7 +94,7 @@ Let's break down the key components:
9494
Start the server by running:
9595

9696
```bash
97-
python server.py
97+
python app.py
9898
```
9999

100100
You should see output indicating that both the web interface and MCP server are running. The web interface will be available at `http://localhost:7860`, and the MCP server at `http://localhost:7860/gradio_api/mcp/sse`.
@@ -166,7 +166,7 @@ textblob
166166
3. Push your code to the Space:
167167
```bash
168168
git init
169-
git add server.py requirements.txt
169+
git add app.py requirements.txt
170170
git commit -m "Initial commit"
171171
git remote add origin https://huggingface.co/spaces/YOUR_USERNAME/mcp-sentiment
172172
git push -u origin main
@@ -185,4 +185,4 @@ Now that we have our MCP server running, we'll create clients to interact with i
185185
2. Implement a SmolAgents-based Python client
186186
3. Test both clients with our deployed server
187187

188-
Let's move on to building our first client!
188+
Let's move on to building our first client!

0 commit comments

Comments
 (0)