gojiteji commited on
Commit
64af843
1 Parent(s): ce09042

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -14,6 +14,7 @@ def generate(logo=None, Vtubername=""):
14
  gr.Warning('Please Select Your Photo📸')
15
 
16
  if(Vtubername==""):
 
17
  gr.Warning('Please Select Your Name😱')
18
 
19
  def extract_dominant_colors(img, num_colors=3, ignore_edges=True):
@@ -228,10 +229,10 @@ iface = gr.Interface(
228
  theme=gr.themes.Default(primary_hue="pink",font=[gr.themes.GoogleFont("Mochiy Pop One")]),
229
  css=css,
230
  fn=generate,
231
- inputs=[gr.Image(label="VTuber Photo", type="pil"), gr.Textbox(label="VTuber Name")],
232
  outputs=gr.Image(label="Generated Logo"),
233
  title="VTuber Logo Generator",
234
- description="①Upload photo you wanna VTuberize❤️ <br>② Input the name⭐️ <br>③Press Submit🧙",
235
  examples=[["image.jpeg", "gojiteji"]],
236
 
237
  allow_flagging=False
 
14
  gr.Warning('Please Select Your Photo📸')
15
 
16
  if(Vtubername==""):
17
+ Vtubername = "unkown"
18
  gr.Warning('Please Select Your Name😱')
19
 
20
  def extract_dominant_colors(img, num_colors=3, ignore_edges=True):
 
229
  theme=gr.themes.Default(primary_hue="pink",font=[gr.themes.GoogleFont("Mochiy Pop One")]),
230
  css=css,
231
  fn=generate,
232
+ inputs=[gr.Image(label="VTuber Photo", type="pil"), gr.Textbox(label="VTuber Name(*alphabet only!*)")],
233
  outputs=gr.Image(label="Generated Logo"),
234
  title="VTuber Logo Generator",
235
+ description="①Upload photo you wanna VTuberize❤️ <br>② Input the name(*alphabet only!*)⭐️ <br>③Press Submit🧙",
236
  examples=[["image.jpeg", "gojiteji"]],
237
 
238
  allow_flagging=False