Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -199,7 +199,7 @@ def generate(
|
|
| 199 |
command_tag = "@" + key_lower
|
| 200 |
if text.strip().lower().startswith(command_tag):
|
| 201 |
prompt_text = text.strip()[len(command_tag):].strip()
|
| 202 |
-
yield f"
|
| 203 |
image_paths, used_seed = generate_image(
|
| 204 |
prompt=prompt_text,
|
| 205 |
negative_prompt="",
|
|
@@ -210,6 +210,7 @@ def generate(
|
|
| 210 |
randomize_seed=True,
|
| 211 |
lora_model=key,
|
| 212 |
)
|
|
|
|
| 213 |
yield gr.Image(image_paths[0])
|
| 214 |
return
|
| 215 |
|
|
@@ -252,7 +253,7 @@ def generate(
|
|
| 252 |
thread.start()
|
| 253 |
|
| 254 |
buffer = ""
|
| 255 |
-
yield "
|
| 256 |
for new_text in streamer:
|
| 257 |
buffer += new_text
|
| 258 |
buffer = buffer.replace("<|im_end|>", "")
|
|
|
|
| 199 |
command_tag = "@" + key_lower
|
| 200 |
if text.strip().lower().startswith(command_tag):
|
| 201 |
prompt_text = text.strip()[len(command_tag):].strip()
|
| 202 |
+
yield f" > Processing Image Generation {key} style ββββββββββ 69%"
|
| 203 |
image_paths, used_seed = generate_image(
|
| 204 |
prompt=prompt_text,
|
| 205 |
negative_prompt="",
|
|
|
|
| 210 |
randomize_seed=True,
|
| 211 |
lora_model=key,
|
| 212 |
)
|
| 213 |
+
yield " > Processing Image Generation ββββββββββ 95%"
|
| 214 |
yield gr.Image(image_paths[0])
|
| 215 |
return
|
| 216 |
|
|
|
|
| 253 |
thread.start()
|
| 254 |
|
| 255 |
buffer = ""
|
| 256 |
+
yield " > Processing with Qwen2VL Ocr ββββββββββ 69%"
|
| 257 |
for new_text in streamer:
|
| 258 |
buffer += new_text
|
| 259 |
buffer = buffer.replace("<|im_end|>", "")
|