ldkong commited on
Commit
ef99204
·
1 Parent(s): 2ba90cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -34,8 +34,24 @@ def path(action, body, hair, top, bottom):
34
  elif body == "alien": body = '1'
35
 
36
  # hair
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
- name = action + str(body) + str(hair) + str(top) + str(bottom)
39
  return name
40
 
41
 
 
34
  elif body == "alien": body = '1'
35
 
36
  # hair
37
+ if hair == "green": hair = '0'
38
+ elif hair == "yellow": hair = '2'
39
+ elif hair == "rose": hair = '4'
40
+ elif hair == "red": hair = '7'
41
+ elif hair == "wine": hair = '8'
42
+
43
+ # top
44
+ if top == "brown": top = '0'
45
+ elif top == "blue": top = '1'
46
+ elif top == "white": top = '2'
47
+
48
+ # bottom
49
+ if bottom == "white": bottom = '0'
50
+ elif bottom == "golden": bottom = '1'
51
+ elif bottom == "red": bottom = '2'
52
+ elif bottom == "silver": bottom = '3'
53
 
54
+ name = 'front' + '_' + str(body) + str(bottom) + str(top) + str(hair)
55
  return name
56
 
57