gojiteji commited on
Commit
7d1e834
1 Parent(s): c9470de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -88,7 +88,7 @@ def generate(logo=None, Vtubername="", sdkey=""):
88
  third_color=str("rgb("+str(dominant_colors[2][0])+", "+str(dominant_colors[2][1])+", "+str(dominant_colors[2][2])+")")
89
 
90
  import requests
91
- import os
92
  from huggingface_hub import InferenceClient
93
 
94
  client = InferenceClient(model="mistralai/Mixtral-8x7B-Instruct-v0.1")
@@ -223,7 +223,7 @@ h1{
223
  }
224
  """
225
 
226
-
227
 
228
  iface = gr.Interface(
229
  theme=gr.themes.Default(primary_hue="pink",font=[gr.themes.GoogleFont("Mochiy Pop One")]),
@@ -233,7 +233,7 @@ iface = gr.Interface(
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>③ Set your SD3 key🔑(https://platform.stability.ai/account/keys) <br>④Press Submit🧙",
236
- examples=[["image.jpeg", "gojiteji"]],
237
 
238
  allow_flagging=False
239
  )
 
88
  third_color=str("rgb("+str(dominant_colors[2][0])+", "+str(dominant_colors[2][1])+", "+str(dominant_colors[2][2])+")")
89
 
90
  import requests
91
+
92
  from huggingface_hub import InferenceClient
93
 
94
  client = InferenceClient(model="mistralai/Mixtral-8x7B-Instruct-v0.1")
 
223
  }
224
  """
225
 
226
+ import os
227
 
228
  iface = gr.Interface(
229
  theme=gr.themes.Default(primary_hue="pink",font=[gr.themes.GoogleFont("Mochiy Pop One")]),
 
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>③ Set your SD3 key🔑(https://platform.stability.ai/account/keys) <br>④Press Submit🧙",
236
+ examples=[["image.jpeg", "gojiteji", os.environ["sdkey"]]],
237
 
238
  allow_flagging=False
239
  )