Leeps commited on
Commit
92eadaf
1 Parent(s): ed79b91

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. .env +1 -0
  2. index.py +1 -1
.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 + " smooth background",
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,