Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -177,7 +177,7 @@ def text_to_image(prompt, show_thinking=False, cfg_text_scale=4.0, cfg_interval=
|
|
| 177 |
|
| 178 |
result = {"text": "", "image": None}
|
| 179 |
# Call inferencer with or without think parameter based on user choice
|
| 180 |
-
for i in inferencer(text=prompt, think=show_thinking, **inference_hyper):
|
| 181 |
print(type(i))
|
| 182 |
if type(i) == str:
|
| 183 |
result["text"] += i
|
|
@@ -251,7 +251,7 @@ def edit_image(image: Image.Image, prompt: str, show_thinking=False, cfg_text_sc
|
|
| 251 |
|
| 252 |
# Include thinking parameter based on user choice
|
| 253 |
result = {"text": "", "image": None}
|
| 254 |
-
for i in inferencer(image=image, text=prompt, think=show_thinking, **inference_hyper):
|
| 255 |
if type(i) == str:
|
| 256 |
result["text"] += i
|
| 257 |
else:
|
|
|
|
| 177 |
|
| 178 |
result = {"text": "", "image": None}
|
| 179 |
# Call inferencer with or without think parameter based on user choice
|
| 180 |
+
for i in inferencer(text=prompt, think=show_thinking, understanding_output=False, **inference_hyper):
|
| 181 |
print(type(i))
|
| 182 |
if type(i) == str:
|
| 183 |
result["text"] += i
|
|
|
|
| 251 |
|
| 252 |
# Include thinking parameter based on user choice
|
| 253 |
result = {"text": "", "image": None}
|
| 254 |
+
for i in inferencer(image=image, text=prompt, think=show_thinking, understanding_output=False, **inference_hyper):
|
| 255 |
if type(i) == str:
|
| 256 |
result["text"] += i
|
| 257 |
else:
|