Spaces:
Sleeping
Sleeping
JarvisLabs
commited on
Commit
•
2129c64
1
Parent(s):
83cf46d
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ model_dic["FineArt_FrancoisBoucher"]={
|
|
46 |
gallery=[] #Gallery array to hold image outputs
|
47 |
|
48 |
|
49 |
-
def gradio_gen_process(img,prompt,ps=0.6,style_model="Anime_Galverse",ls=0.6,jp=None,
|
50 |
#JP Detect
|
51 |
if jp:
|
52 |
prompt=DeepL(prompt)
|
@@ -72,11 +72,11 @@ def gradio_gen_process(img,prompt,ps=0.6,style_model="Anime_Galverse",ls=0.6,jp=
|
|
72 |
|
73 |
|
74 |
#Send email
|
75 |
-
if recipient_email:
|
76 |
-
|
77 |
-
|
78 |
-
else:
|
79 |
-
|
80 |
|
81 |
|
82 |
|
@@ -94,7 +94,7 @@ gradio_interface=gr.Interface(
|
|
94 |
gr.Dropdown(list(model_dic.keys()),label="Style model"),
|
95 |
gr.Slider(minimum=0.1,maximum=1,value=0.6,label="LS:Style strength"),
|
96 |
gr.Checkbox(label="日本語", info="Promtは日本語ですか?"),
|
97 |
-
|
98 |
],
|
99 |
outputs=[
|
100 |
#gr.Image(label="gened image",type="pil"),
|
|
|
46 |
gallery=[] #Gallery array to hold image outputs
|
47 |
|
48 |
|
49 |
+
def gradio_gen_process(img,prompt,ps=0.6,style_model="Anime_Galverse",ls=0.6,jp=None,model=base_model,model_trigger=None,save_loc=save_loc):
|
50 |
#JP Detect
|
51 |
if jp:
|
52 |
prompt=DeepL(prompt)
|
|
|
72 |
|
73 |
|
74 |
#Send email
|
75 |
+
#if recipient_email:
|
76 |
+
# send_email(file_saveloc,recipient_email,prompt=prompt)
|
77 |
+
# print("Email sent to ",recipient_email)
|
78 |
+
# else:
|
79 |
+
# print("Email not sent")
|
80 |
|
81 |
|
82 |
|
|
|
94 |
gr.Dropdown(list(model_dic.keys()),label="Style model"),
|
95 |
gr.Slider(minimum=0.1,maximum=1,value=0.6,label="LS:Style strength"),
|
96 |
gr.Checkbox(label="日本語", info="Promtは日本語ですか?"),
|
97 |
+
# gr.Textbox(label="Email",placeholder="")
|
98 |
],
|
99 |
outputs=[
|
100 |
#gr.Image(label="gened image",type="pil"),
|