Spaces:
Runtime error
Runtime error
File size: 658 Bytes
3ac53bd e145aa5 3ac53bd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
from utils import change_style
def generate(Image, Style, Inference_Steps, Guidance, Start_Step):
if Inference_Steps > Start_Step:
return change_style(Image, Style, Inference_Steps, Guidance, Start_Step)
style = gr.Radio(['GTA 5', 'Manga', 'Ghibli', 'Sims', 'Kaya Ghost Assasin', 'Arcane', 'Uzumaki'])
inf_steps = gr.Slider(minimum = 10, maximum = 100, value = 50, step = 1)
guidance = gr.Slider(minimum = 5, maximum = 50, value = 10, step = 1)
str_step = gr.Slider(minimum = 10, maximum = 100, value = 25, step = 1)
io = gr.Interface(generate, ["image", style, inf_steps, guidance, str_step], gr.Image())
io.launch()
|