Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
.env
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
REPLICATE_API_TOKEN=r8_DAzyOBdCwUdt0b26ZMPWLyvyHTh55uh2Lwb3c
|
index.py
CHANGED
@@ -85,7 +85,7 @@ def generate_pattern(image, prompt):
|
|
85 |
cross_base64 = base64.b64encode(buffered.getvalue()).decode('utf-8')
|
86 |
|
87 |
input = {
|
88 |
-
"prompt": prompt + "
|
89 |
"negative_prompt": "worst quality, low quality, cartoons, sketch, ugly, lowres",
|
90 |
"image": "data:image/jpeg;base64," + image_base64,
|
91 |
"mask": "data:image/jpeg;base64," + cross_base64,
|
|
|
85 |
cross_base64 = base64.b64encode(buffered.getvalue()).decode('utf-8')
|
86 |
|
87 |
input = {
|
88 |
+
"prompt": prompt + ", seamless pattern",
|
89 |
"negative_prompt": "worst quality, low quality, cartoons, sketch, ugly, lowres",
|
90 |
"image": "data:image/jpeg;base64," + image_base64,
|
91 |
"mask": "data:image/jpeg;base64," + cross_base64,
|