Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,8 @@ import gradio as gr
|
|
| 2 |
from utils import change_style
|
| 3 |
|
| 4 |
def generate(Image, Style, Inference_Steps, Guidance, Start_Step):
|
| 5 |
-
|
|
|
|
| 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)
|
|
|
|
| 2 |
from utils import change_style
|
| 3 |
|
| 4 |
def generate(Image, Style, Inference_Steps, Guidance, Start_Step):
|
| 5 |
+
if Inference_Steps > Start_Step:
|
| 6 |
+
return change_style(Image, Style, Inference_Steps, Guidance, Start_Step)
|
| 7 |
|
| 8 |
style = gr.Radio(['GTA 5', 'Manga', 'Ghibli', 'Sims', 'Kaya Ghost Assasin', 'Arcane', 'Uzumaki'])
|
| 9 |
inf_steps = gr.Slider(minimum = 10, maximum = 100, value = 50, step = 1)
|