deedax commited on
Commit
3ac53bd
·
1 Parent(s): 12af3ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -19
app.py CHANGED
@@ -1,19 +1,14 @@
1
- import gradio as gr
2
- from utils import change_style
3
-
4
- CUSTOM_PATH = "/change-your-style"
5
-
6
- def read_main():
7
- return {"Status": "Working"}
8
-
9
- def generate(Image, Style, Inference_Steps, Guidance, Start_Step):
10
- return change_style(Image, Style, Inference_Steps, Guidance, Start_Step)
11
-
12
- style = gr.Radio(['GTA 5', 'Manga', 'Ghibli', 'Sims', 'Kaya Ghost Assasin', 'Arcane', 'Uzumaki'])
13
- inf_steps = gr.Slider(minimum = 10, maximum = 100, value = 50, step = 1)
14
- guidance = gr.Slider(minimum = 5, maximum = 50, value = 10, step = 1)
15
- str_step = gr.Slider(minimum = 10, maximum = 100, value = 25, step = 1)
16
-
17
- io = gr.Interface(generate, ["image", style, inf_steps, guidance, str_step], gr.Image())
18
- io.launch()
19
-
 
1
+ import gradio as gr
2
+ from utils import change_style
3
+
4
+ def generate(Image, Style, Inference_Steps, Guidance, Start_Step):
5
+ return change_style(Image, Style, Inference_Steps, Guidance, Start_Step)
6
+
7
+ style = gr.Radio(['GTA 5', 'Manga', 'Ghibli', 'Sims', 'Kaya Ghost Assasin', 'Arcane', 'Uzumaki'])
8
+ inf_steps = gr.Slider(minimum = 10, maximum = 100, value = 50, step = 1)
9
+ guidance = gr.Slider(minimum = 5, maximum = 50, value = 10, step = 1)
10
+ str_step = gr.Slider(minimum = 10, maximum = 100, value = 25, step = 1)
11
+
12
+ io = gr.Interface(generate, ["image", style, inf_steps, guidance, str_step], gr.Image())
13
+ io.launch()
14
+