Spaces:
Sleeping
Sleeping
Commit
·
f8b7086
1
Parent(s):
78551e3
update
Browse files
app.py
CHANGED
@@ -260,6 +260,8 @@ def text_to_image(prompt,keywords,positive_prompt,radio,slider_step,slider_guida
|
|
260 |
)
|
261 |
print(f"[{conv.roles[0]}]\n{msg}")
|
262 |
print(f"[{conv.roles[1]}]\n{outputs}")
|
|
|
|
|
263 |
ocrs = outputs.split('\n')
|
264 |
time2 = time.time()
|
265 |
print(time2-time1)
|
@@ -267,7 +269,6 @@ def text_to_image(prompt,keywords,positive_prompt,radio,slider_step,slider_guida
|
|
267 |
# user_prompt = prompt
|
268 |
current_ocr = ocrs
|
269 |
|
270 |
-
layout_image = get_layout_image(ocrs)
|
271 |
|
272 |
ocr_ids = []
|
273 |
print('user_prompt', user_prompt)
|
|
|
260 |
)
|
261 |
print(f"[{conv.roles[0]}]\n{msg}")
|
262 |
print(f"[{conv.roles[1]}]\n{outputs}")
|
263 |
+
layout_image = get_layout_image(outputs)
|
264 |
+
|
265 |
ocrs = outputs.split('\n')
|
266 |
time2 = time.time()
|
267 |
print(time2-time1)
|
|
|
269 |
# user_prompt = prompt
|
270 |
current_ocr = ocrs
|
271 |
|
|
|
272 |
|
273 |
ocr_ids = []
|
274 |
print('user_prompt', user_prompt)
|