Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
import io
|
3 |
from PIL import Image
|
|
|
4 |
API_URL = "https://api-inference.huggingface.co/models/hc1608/diffusion"
|
5 |
headers = {"Authorization": "Bearer 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"}
|
|
|
6 |
def query(payload):
|
7 |
response = requests.post(API_URL, headers=headers, json=payload)
|
8 |
image_bytes = response.content
|
|
|
1 |
import gradio as gr
|
2 |
import io
|
3 |
from PIL import Image
|
4 |
+
|
5 |
API_URL = "https://api-inference.huggingface.co/models/hc1608/diffusion"
|
6 |
headers = {"Authorization": "Bearer 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"}
|
7 |
+
|
8 |
def query(payload):
|
9 |
response = requests.post(API_URL, headers=headers, json=payload)
|
10 |
image_bytes = response.content
|