Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
| 1 |
-
# Diffsketcher
|
| 2 |
|
| 3 |
-
This
|
| 4 |
|
| 5 |
## Usage
|
| 6 |
|
| 7 |
-
You can use this model through the Hugging Face Inference API:
|
| 8 |
-
|
| 9 |
```python
|
| 10 |
import requests
|
| 11 |
|
|
@@ -17,26 +15,6 @@ def query(payload):
|
|
| 17 |
return response.json()
|
| 18 |
|
| 19 |
output = query({
|
| 20 |
-
"
|
| 21 |
-
"parameters": {
|
| 22 |
-
# Add model-specific parameters here
|
| 23 |
-
}
|
| 24 |
})
|
| 25 |
```
|
| 26 |
-
|
| 27 |
-
## Model Information
|
| 28 |
-
|
| 29 |
-
This model is based on the original implementation from:
|
| 30 |
-
|
| 31 |
-
- [GitHub Repository](https://github.com/ximinng/diffsketcher)
|
| 32 |
-
|
| 33 |
-
## Files
|
| 34 |
-
|
| 35 |
-
- `Dockerfile`: Custom Docker image for the Inference API
|
| 36 |
-
- `app.py`: Entry point for the Inference API
|
| 37 |
-
- `requirements.txt`: Dependencies
|
| 38 |
-
- `diffsketcher_handler.py`: Handler for the model
|
| 39 |
-
|
| 40 |
-
## License
|
| 41 |
-
|
| 42 |
-
This model is released under the same license as the original implementation.
|
|
|
|
| 1 |
+
# Diffsketcher
|
| 2 |
|
| 3 |
+
This is a vector graphics model for generating SVG images from text prompts.
|
| 4 |
|
| 5 |
## Usage
|
| 6 |
|
|
|
|
|
|
|
| 7 |
```python
|
| 8 |
import requests
|
| 9 |
|
|
|
|
| 15 |
return response.json()
|
| 16 |
|
| 17 |
output = query({
|
| 18 |
+
"prompt": "a beautiful mountain landscape"
|
|
|
|
|
|
|
|
|
|
| 19 |
})
|
| 20 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|