gojiteji commited on
Commit
a4f6704
1 Parent(s): 4b52355

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -9,7 +9,13 @@ import random
9
 
10
  import gradio as gr
11
 
12
- def generate(logo, Vtubername):
 
 
 
 
 
 
13
  def extract_dominant_colors(img, num_colors=3, ignore_edges=True):
14
  if img.mode == 'RGBA':
15
  image = img.convert('RGB')
@@ -226,7 +232,7 @@ iface = gr.Interface(
226
  outputs=gr.Image(label="Generated Logo"),
227
  title="VTuber Logo Generator",
228
  description="①Upload photo you wanna VTuberize❤️ <br>② Input the name⭐️ <br>③Press Submit🧙",
229
- examples=[["IMG_8715.jpeg", "gojiteji"]],
230
 
231
  allow_flagging=False
232
  )
 
9
 
10
  import gradio as gr
11
 
12
+ def generate(logo=None, Vtubername=""):
13
+ if(logo==None):
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):
20
  if img.mode == 'RGBA':
21
  image = img.convert('RGB')
 
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
238
  )