Spaces:
Runtime error
Runtime error
shorten top instructions, more details below
Browse files
app.py
CHANGED
@@ -127,23 +127,14 @@ model used: https://huggingface.co/monster-labs/control_v1p_sd15_qrcode_monster
|
|
127 |
|
128 |
Welcome to the QR Code Monster!
|
129 |
|
130 |
-
|
131 |
-
|
132 |
-
- **Input Text:** The text you want to encode into the QR code
|
133 |
-
- **Prompt:** Input a prompt to guide the QR code generation process, allowing you to control the appearance and style of the generated QR codes. Some are easier than others to generate readable QR codes.
|
134 |
-
- **Controlnet Control Scale:** Raise the control scale value to increase the readability of the QR codes or lower it to make the QR codes more creative and distinctive.
|
135 |
|
136 |
-
|
|
|
137 |
|
138 |
-
We're already working on v2, which is much more powerful, you can try [an early version here](https://qrcodemonster.art)!
|
139 |
|
140 |
-
|
141 |
|
142 |
-
1. Input your text: Pass the text you'd like to encode into the QR code as input. Bigger text means bigger codes, which are less likely to give good results (will ressemble qr codes too much).
|
143 |
-
2. Set your prompt: Choose a prompt to guide the generation process (use all the SD tricks you like: styles, adjectives...).
|
144 |
-
3. Adjust the Controlnet Control Scale: The higher the control scale, the more readable the QR code will be, while a lower control scale leads to a more creative QR code.
|
145 |
-
4. Generate multiple codes: Since not all generated codes may be readable, you'll need to create a few codes with the same parameters to determine if any adjustments are needed.
|
146 |
-
5. Test the generated QR codes: Scan the generated QR codes to make sure they are readable and meet your requirements.
|
147 |
"""
|
148 |
)
|
149 |
|
@@ -270,6 +261,27 @@ We're already working on v2, which is much more powerful, you can try [an early
|
|
270 |
outputs=[result_image],
|
271 |
cache_examples=True,
|
272 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
|
274 |
blocks.queue(concurrency_count=1, max_size=20)
|
275 |
blocks.launch(share=bool(os.environ.get("SHARE", False)))
|
|
|
127 |
|
128 |
Welcome to the QR Code Monster!
|
129 |
|
130 |
+
**TLDR:**
|
|
|
|
|
|
|
|
|
131 |
|
132 |
+
Input your text, choose a prompt, and generate a QR code!
|
133 |
+
The Controlnet Conditioning Scale parameter controls the readability/creativity of the QR code. Lower values will generate more creative QR codes, higher values will generate more readable QR codes.
|
134 |
|
|
|
135 |
|
136 |
+
More instructions at the bottom of the page.
|
137 |
|
|
|
|
|
|
|
|
|
|
|
138 |
"""
|
139 |
)
|
140 |
|
|
|
261 |
outputs=[result_image],
|
262 |
cache_examples=True,
|
263 |
)
|
264 |
+
gr.Markdown(
|
265 |
+
"""
|
266 |
+
## Parameters
|
267 |
+
|
268 |
+
- **Input Text:** The text you want to encode into the QR code
|
269 |
+
- **Prompt:** Input a prompt to guide the QR code generation process, allowing you to control the appearance and style of the generated QR codes. Some are easier than others to generate readable QR codes.
|
270 |
+
- **Controlnet Control Scale:** Raise the control scale value to increase the readability of the QR codes or lower it to make the QR codes more creative and distinctive.
|
271 |
+
|
272 |
+
The generated QR codes might not always be easily readable. It might take a few tries with different parameters to find the right balance. This often depends on the prompt, which can be more or less suitable for QR code generation.
|
273 |
+
|
274 |
+
We're already working on v2, which is much more powerful, you can try [an early version here](https://qrcodemonster.art)!
|
275 |
+
|
276 |
+
## How to Use
|
277 |
+
|
278 |
+
1. Input your text: Pass the text you'd like to encode into the QR code as input. Bigger text means bigger codes, which are less likely to give good results (will ressemble qr codes too much).
|
279 |
+
2. Set your prompt: Choose a prompt to guide the generation process (use all the SD tricks you like: styles, adjectives...).
|
280 |
+
3. Adjust the Controlnet Control Scale: The higher the control scale, the more readable the QR code will be, while a lower control scale leads to a more creative QR code.
|
281 |
+
4. Generate multiple codes: Since not all generated codes may be readable, you'll need to create a few codes with the same parameters to determine if any adjustments are needed.
|
282 |
+
5. Test the generated QR codes: Scan the generated QR codes to make sure they are readable and meet your requirements.
|
283 |
+
"""
|
284 |
+
)
|
285 |
|
286 |
blocks.queue(concurrency_count=1, max_size=20)
|
287 |
blocks.launch(share=bool(os.environ.get("SHARE", False)))
|