Spaces:
Sleeping
Sleeping
JarvisLabs
commited on
Commit
•
5103ff7
1
Parent(s):
16f2c5e
Update app.py
Browse files
app.py
CHANGED
@@ -7,17 +7,21 @@ os.makedirs(save_loc,exist_ok=True)
|
|
7 |
|
8 |
model_dic={}
|
9 |
|
|
|
|
|
|
|
|
|
|
|
10 |
model_dic["ISS MAP"]={
|
11 |
"model_loc":"jarvissan22/iss_nikond5:6ff0c8d11e33e4e8c91b1b9175a1c03f32fb559641bbbbe7007ac07b22fc5cec",
|
12 |
"model_trigger":"Aerial photo taken from the ISS photo taken from the ISS",
|
13 |
}
|
14 |
|
15 |
-
model_dic["
|
16 |
-
"model_loc":
|
17 |
-
"model_trigger":"
|
18 |
}
|
19 |
|
20 |
-
|
21 |
model_dic["Ukiyo-e_川瀬巴水"]={
|
22 |
"model_loc":"jarvissan22/kawasehasui_backgrounds:a4bb8bb1beb503b02c93789381544097dcb70afc92c512ea1500e70ccf704bc4",
|
23 |
"model_trigger":"Ukiyo-e,KawaseHasu",
|
@@ -35,8 +39,10 @@ model_dic["Anime_niji"]={
|
|
35 |
|
36 |
|
37 |
|
38 |
-
gallery=[] #Gallery array to hold image outputs
|
39 |
-
|
|
|
|
|
40 |
#JP Detect
|
41 |
if jp:
|
42 |
prompt=DeepL(prompt)
|
@@ -92,4 +98,4 @@ gradio_interface=gr.Interface(
|
|
92 |
],
|
93 |
examples="Tiles/"
|
94 |
)
|
95 |
-
gradio_interface.launch(debug=True
|
|
|
7 |
|
8 |
model_dic={}
|
9 |
|
10 |
+
model_dic["None"]={
|
11 |
+
"model_loc":base_model,
|
12 |
+
"model_trigger":"high res, 4k",
|
13 |
+
}
|
14 |
+
|
15 |
model_dic["ISS MAP"]={
|
16 |
"model_loc":"jarvissan22/iss_nikond5:6ff0c8d11e33e4e8c91b1b9175a1c03f32fb559641bbbbe7007ac07b22fc5cec",
|
17 |
"model_trigger":"Aerial photo taken from the ISS photo taken from the ISS",
|
18 |
}
|
19 |
|
20 |
+
model_dic["Anime_Galverse"]={
|
21 |
+
"model_loc":"galverse/setc-t1_label:65a7ee5a8c875fe9f38111699edf72f6c07f84dda7b7be5720e843ebb9f9c876",
|
22 |
+
"model_trigger":"anime coloring in the style of galverse",
|
23 |
}
|
24 |
|
|
|
25 |
model_dic["Ukiyo-e_川瀬巴水"]={
|
26 |
"model_loc":"jarvissan22/kawasehasui_backgrounds:a4bb8bb1beb503b02c93789381544097dcb70afc92c512ea1500e70ccf704bc4",
|
27 |
"model_trigger":"Ukiyo-e,KawaseHasu",
|
|
|
39 |
|
40 |
|
41 |
|
42 |
+
global gallery=[] #Gallery array to hold image outputs
|
43 |
+
|
44 |
+
|
45 |
+
def gradio_gen_process(img,prompt,ps=0.6,style_model="Anime_Galverse",ls=0.6,jp=None,recipient_email=None,model=base_model,model_trigger=None,save_loc=save_loc):
|
46 |
#JP Detect
|
47 |
if jp:
|
48 |
prompt=DeepL(prompt)
|
|
|
98 |
],
|
99 |
examples="Tiles/"
|
100 |
)
|
101 |
+
gradio_interface.launch(debug=True)
|