Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,19 +1,14 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
from utils import change_style
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 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 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|