Skip to content

Commit 4962ab1

Browse files
Update gradio-server.mdx
I believe the HF gradio spaces requires naming the gradio application to app.py.
1 parent c7998ab commit 4962ab1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

units/en/unit2/gradio-server.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ textblob
165165

166166
3. Push your code to the Space:
167167
```bash
168+
cp server.py app.py
168169
git init
169-
git add server.py requirements.txt
170+
git add app.py requirements.txt
170171
git commit -m "Initial commit"
171172
git remote add origin https://huggingface.co/spaces/YOUR_USERNAME/mcp-sentiment
172173
git push -u origin main
@@ -185,4 +186,4 @@ Now that we have our MCP server running, we'll create clients to interact with i
185186
2. Implement a SmolAgents-based Python client
186187
3. Test both clients with our deployed server
187188

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

0 commit comments

Comments
 (0)