Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def prompt_to_layout(user_prompt, top_p, top_k, fpath=None):
|
|
| 75 |
output = tokenizer.batch_decode(output, skip_special_tokens=True)
|
| 76 |
#print(output)
|
| 77 |
|
| 78 |
-
layout = output[0].lstrip().split('[User prompt]')[1].split('[Layout]')[1].split(', ')
|
| 79 |
spaces = [txt.split(':')[0] for txt in layout]
|
| 80 |
|
| 81 |
coordinates = [txt.split(':')[1] for txt in layout]
|
|
|
|
| 75 |
output = tokenizer.batch_decode(output, skip_special_tokens=True)
|
| 76 |
#print(output)
|
| 77 |
|
| 78 |
+
layout = output[0].lstrip().split('[User prompt]')[1].split('[Layout] ')[1].split(', ')
|
| 79 |
spaces = [txt.split(':')[0] for txt in layout]
|
| 80 |
|
| 81 |
coordinates = [txt.split(':')[1] for txt in layout]
|