Commit
·
4702279
1
Parent(s):
815b564
Update README.md
Browse files
README.md
CHANGED
@@ -48,7 +48,7 @@ gr.Interface.load("models/midjourney-community/midjourney-mini").launch()
|
|
48 |
|
49 |
## Deploy in Inference API
|
50 |
|
51 |
-
|
52 |
```py
|
53 |
import requests
|
54 |
|
@@ -61,8 +61,8 @@ def query(payload):
|
|
61 |
image_bytes = query({
|
62 |
"inputs": "Astronaut riding a horse",
|
63 |
})
|
|
|
64 |
|
65 |
-
<h3>Javascript:</h3>
|
66 |
```js
|
67 |
async function query(data) {
|
68 |
const response = await fetch(
|
|
|
48 |
|
49 |
## Deploy in Inference API
|
50 |
|
51 |
+
|
52 |
```py
|
53 |
import requests
|
54 |
|
|
|
61 |
image_bytes = query({
|
62 |
"inputs": "Astronaut riding a horse",
|
63 |
})
|
64 |
+
```
|
65 |
|
|
|
66 |
```js
|
67 |
async function query(data) {
|
68 |
const response = await fetch(
|