RoyalEagle commited on
Commit
3f364c4
1 Parent(s): 35b7220

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -7,13 +7,11 @@ def generate(prompt, quality, style, aspect):
7
  torch.cuda.empty_cache()
8
  pixray.reset_settings()
9
 
10
- use_pixeldraw = (style == 'pixel art')
11
- use_clipdraw = (style == 'painting')
12
  pixray.add_settings(prompts=prompt,
13
  aspect=aspect,
14
  quality=quality,
15
- use_pixeldraw=use_pixeldraw,
16
- use_clipdraw=use_clipdraw,
17
  make_video=True)
18
 
19
  settings = pixray.apply_settings()
@@ -25,9 +23,9 @@ def generate(prompt, quality, style, aspect):
25
  # Create the UI
26
  prompt = gr.inputs.Textbox(default="Underwater city", label="Text Prompt")
27
  quality = gr.inputs.Radio(choices=['draft', 'normal', 'better'], label="Quality")
28
- style = gr.inputs.Radio(choices=['image', 'painting','pixel art'], label="Type")
29
  aspect = gr.inputs.Radio(choices=['square', 'widescreen','portrait'], label="Size")
30
 
31
  # Launch the demo
32
- iface = gr.Interface(generate, inputs=[prompt, quality, style, aspect], outputs=['image', 'video'], enable_queue=True, live=False)
33
  iface.launch(debug=True)
 
7
  torch.cuda.empty_cache()
8
  pixray.reset_settings()
9
 
10
+ # use_pixeldraw = (style == 'pixel art')
11
+ # use_clipdraw = (style == 'painting')
12
  pixray.add_settings(prompts=prompt,
13
  aspect=aspect,
14
  quality=quality,
 
 
15
  make_video=True)
16
 
17
  settings = pixray.apply_settings()
 
23
  # Create the UI
24
  prompt = gr.inputs.Textbox(default="Underwater city", label="Text Prompt")
25
  quality = gr.inputs.Radio(choices=['draft', 'normal', 'better'], label="Quality")
26
+ # style = gr.inputs.Radio(choices=['image', 'painting','pixel art'], label="Type")
27
  aspect = gr.inputs.Radio(choices=['square', 'widescreen','portrait'], label="Size")
28
 
29
  # Launch the demo
30
+ iface = gr.Interface(generate, inputs=[prompt, quality, aspect], outputs=['image', 'video'], enable_queue=True, live=False)
31
  iface.launch(debug=True)