Commit
·
ffda3ec
1
Parent(s):
f7c9e1d
Update README.md
Browse files
README.md
CHANGED
@@ -15,7 +15,7 @@ library_name: diffusers
|
|
15 |
pipeline_tag: text-to-image
|
16 |
---
|
17 |
|
18 |
-
|
19 |
|
20 |
## Description
|
21 |
|
@@ -52,7 +52,7 @@ gr.Interface.load("models/midjourney-community/midjourney-mini").launch()
|
|
52 |
import requests
|
53 |
|
54 |
API_URL = "https://api-inference.huggingface.co/models/midjourney-community/midjourney-mini"
|
55 |
-
headers = {"Authorization": "Bearer
|
56 |
|
57 |
def query(payload):
|
58 |
response = requests.post(API_URL, headers=headers, json=payload)
|
@@ -66,7 +66,7 @@ from PIL import Image
|
|
66 |
image = Image.open(io.BytesIO(image_bytes))
|
67 |
```
|
68 |
|
69 |
-
|
70 |
-[GitHub](https://github.com/minhthangdang/MidJoureny)
|
71 |
-[Official site](https://midjourney.com)
|
72 |
-[Download for Windows](https://mid-journey.com/downloaв)
|
|
|
15 |
pipeline_tag: text-to-image
|
16 |
---
|
17 |
|
18 |
+
<h1><center>Midjourney-mini</center></h1>
|
19 |
|
20 |
## Description
|
21 |
|
|
|
52 |
import requests
|
53 |
|
54 |
API_URL = "https://api-inference.huggingface.co/models/midjourney-community/midjourney-mini"
|
55 |
+
headers = {"Authorization": "Bearer hf_token"}
|
56 |
|
57 |
def query(payload):
|
58 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
66 |
image = Image.open(io.BytesIO(image_bytes))
|
67 |
```
|
68 |
|
69 |
+
# Links
|
70 |
-[GitHub](https://github.com/minhthangdang/MidJoureny)
|
71 |
-[Official site](https://midjourney.com)
|
72 |
-[Download for Windows](https://mid-journey.com/downloaв)
|