|
@@ -158,11 +158,11 @@
|
|
|
"def text2image(text: str) -> str:\n",
|
|
|
" \"\"\"generate an image based on a text.\"\"\"\n",
|
|
|
" output = replicate.run(\n",
|
|
|
- " \"lucataco/open-dalle-v1.1:1c7d4c8dec39c7306df7794b28419078cb9d18b9213ab1c21fdc46a1deca0144\",\n",
|
|
|
+ " \"stability-ai/sdxl:7762fd07cf82c948538e41f63f77d685e02b063e37e496e96eefd46c929f9bdc\",\n",
|
|
|
" input={\n",
|
|
|
" \"width\": 1024,\n",
|
|
|
" \"height\": 1024,\n",
|
|
|
- " \"prompt\": text, #\"a yellow lab puppy running free with wild flowers in the mountain behind\",\n",
|
|
|
+ " \"prompt\": text, # a yellow lab puppy running free with wild flowers in the mountain behind\n",
|
|
|
" \"scheduler\": \"KarrasDPM\",\n",
|
|
|
" \"num_outputs\": 1,\n",
|
|
|
" \"guidance_scale\": 7.5,\n",
|
|
@@ -849,7 +849,7 @@
|
|
|
"name": "python",
|
|
|
"nbconvert_exporter": "python",
|
|
|
"pygments_lexer": "ipython3",
|
|
|
- "version": "3.11.8"
|
|
|
+ "version": "3.10.14"
|
|
|
}
|
|
|
},
|
|
|
"nbformat": 4,
|