Skip to content

Commit 0cee610

Browse files
authored
Merge pull request #18 from evalstate/fix/default-space
update default space to black-forest-labs/FLUX.1-schnell
2 parents 93cfd00 + 128cb22 commit 0cee610

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Read the introduction here [llmindset.co.uk/resources/mcp-hfspace/](https://llmindset.co.uk/resources/mcp-hfspace/)
44

5-
Connect to [Hugging Face Spaces](https://huggingface.co/spaces) with minimal setup needed - simply add your spaces and go!
5+
Connect to [Hugging Face Spaces](https://huggingface.co/spaces) with minimal setup needed - simply add your spaces and go!
66

7-
By default, it connects to `evalstate/FLUX.1-schnell` providing Image Generation capabilities to Claude Desktop.
7+
By default, it connects to `black-forest-labs/FLUX.1-schnell` providing Image Generation capabilities to Claude Desktop.
88

99
![Default Setup](./images/2024-12-09-flower.png)
1010

@@ -52,8 +52,7 @@ An example configuration for using a modern image generator, vision model and te
5252
}
5353
```
5454

55-
56-
To use private spaces, supply your Hugging Face Token with either the `--hf-token=hf_...` argument or `HF_TOKEN` environment variable.
55+
To use private spaces, supply your Hugging Face Token with either the `--hf-token=hf_...` argument or `HF_TOKEN` environment variable.
5756

5857
It's possible to run multiple server instances to use different working directories and tokens if needed.
5958

@@ -73,7 +72,7 @@ We'll use Claude to compare images created by `shuttleai/shuttle-3.1-aesthetic`
7372

7473
### Example 2 - Vision Model (Upload Image)
7574

76-
We'll use `merve/paligemma2-vqav2` [space link](https://huggingface.co/spaces/merve/paligemma2-vqav2) to query an image. In this case, we specify the filename which is available in the Working Directory: we don't want to upload the Image directly to Claude's context window. So, we can prompt Claude:
75+
We'll use `merve/paligemma2-vqav2` [space link](https://huggingface.co/spaces/merve/paligemma2-vqav2) to query an image. In this case, we specify the filename which is available in the Working Directory: we don't want to upload the Image directly to Claude's context window. So, we can prompt Claude:
7776

7877
`use paligemma to find out who is in "test_gemma.jpg"` -> `Text Output: david bowie`
7978
![Vision - File Upload](./images/2024-12-09-bowie.png)
@@ -124,7 +123,7 @@ Some recommended spaces to try:
124123
- black-forest-labs/FLUX.1-schnell
125124
- yanze/PuLID-FLUX
126125
- Inspyrenet-Rembg (Background Removal)
127-
- diyism/Datou1111-shou_xin - [Beautiful Pencil Drawings](https://x.com/ClementDelangue/status/1867318931502895358)
126+
- diyism/Datou1111-shou_xin - [Beautiful Pencil Drawings](https://x.com/ClementDelangue/status/1867318931502895358)
128127

129128
### Chat
130129

@@ -150,7 +149,7 @@ Some recommended spaces to try:
150149
- microsoft/OmniParser
151150
- merve/paligemma2-vqav2
152151
- merve/paligemma-doc
153-
- DawnC/PawMatchAI
152+
- DawnC/PawMatchAI
154153
- DawnC/PawMatchAI/on_find_match_click - for interactive dog recommendations
155154

156155
## Other Features
@@ -204,7 +203,7 @@ On Windows: `%APPDATA%/Claude/claude_desktop_config.json`
204203
### Claude Desktop
205204

206205
- Claude Desktop 0.75 doesn't seem to respond to errors from the MCP Server, timing out instead. For persistent issues, use the MCP Inspector to get a better look at diagnosing what's going wrong. If something suddenly stops working, it's probably due to exhausting your HuggingFace ZeroGPU quota - try again after a short period, or set up your own Space for hosting.
207-
- Claude Desktop seems to use a hard timeout value of 60s, and doesn't appear to use Progress Notifications to manage UX or keep-alive. If you are using ZeroGPU spaces, large/heavy jobs may timeout. Check the WORK_DIR for results though; the MCP Server will still capture and save the result if it was produced.
206+
- Claude Desktop seems to use a hard timeout value of 60s, and doesn't appear to use Progress Notifications to manage UX or keep-alive. If you are using ZeroGPU spaces, large/heavy jobs may timeout. Check the WORK_DIR for results though; the MCP Server will still capture and save the result if it was produced.
208207
- Claude Desktops reporting of Server Status, logging etc. isn't great - use [@modelcontextprotocol/inspector](https://github.com/modelcontextprotocol/inspector) to help diagnose issues.
209208

210209
### HuggingFace Spaces

src/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export function parseConfig(): Config {
3131
debug: argv["debug"],
3232
spacePaths: (() => {
3333
const filtered = argv._.filter((arg) => arg.toString().trim().length > 0);
34-
return filtered.length > 0 ? filtered : ["evalstate/FLUX.1-schnell"];
34+
return filtered.length > 0
35+
? filtered
36+
: ["black-forest-labs/FLUX.1-schnell"];
3537
})(),
3638
};
3739
}

0 commit comments

Comments
 (0)