THEODOROS commited on
Commit
485c04a
·
1 Parent(s): 72be7ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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]