Rooni commited on
Commit
c8514d9
·
1 Parent(s): 9cb2b2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -9
app.py CHANGED
@@ -55,19 +55,26 @@ def improve_quality(image, algorithm):
55
  def main():
56
  interface = gr.Interface(
57
  generate_image,
58
- inputs=[prompt, models, negative_prompt, sampling_method, sampling_steps, cfg_scale, seed],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  outputs=gr.Image(),
60
  title="Gradio Image Generator",
61
  )
62
 
63
- # Add tabs (if supported)
64
- if hasattr(interface, 'tabs'):
65
- interface.tabs([
66
- gr.Tab("Базовые настройки", [prompt, models]),
67
- gr.Tab("Расширенные настройки", [negative_prompt, sampling_method, sampling_steps, cfg_scale, seed]),
68
- gr.Tab("Улучшение качества", [algorithm]),
69
- ])
70
-
71
  interface.launch()
72
 
73
  if __name__ == "__main__":
 
55
  def main():
56
  interface = gr.Interface(
57
  generate_image,
58
+ [
59
+ gr.Tab("Базовые настройки", [
60
+ prompt,
61
+ models,
62
+ ]),
63
+ gr.Tab("Расширенные настройки", [
64
+ negative_prompt,
65
+ sampling_method,
66
+ sampling_steps,
67
+ cfg_scale,
68
+ seed,
69
+ ]),
70
+ gr.Tab("Улучшение качества", [
71
+ algorithm,
72
+ ]),
73
+ ],
74
  outputs=gr.Image(),
75
  title="Gradio Image Generator",
76
  )
77
 
 
 
 
 
 
 
 
 
78
  interface.launch()
79
 
80
  if __name__ == "__main__":