Shivdutta commited on
Commit
3051b5f
·
verified ·
1 Parent(s): 69dd5a5

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -290,7 +290,6 @@ dict_styles = {
290
  'Matrix':'styles/learned_embeds_matrix.bin',
291
  'Oil Painting':'styles/learned_embeds_oil.bin',
292
  }
293
- dict_styles.keys()
294
 
295
  def inference(prompt, style,seed):
296
 
@@ -307,9 +306,8 @@ description = "A simple Gradio interface to stylize Stable Diffusion outputs"
307
  examples = [["Pink Ferrari Car", 24041975,"Manga"], ["A man sipping tea wearing a spacesuit on the moon",24041975, "GTA-5"]] # Added valid styles
308
 
309
  demo = gr.Interface(inference,
310
- inputs = [gr.Textbox(label='Prompt', value='Pink Ferrari Car'), gr.Textbox(label='Seed', value='24041975'),
311
- gr.Dropdown(['Dr Strange', 'GTA-5', 'Manga', 'Pokemon','Illustration','Matrix','Oil Painting'], label='Style')],
312
-
313
  outputs = [
314
  gr.Image(label="Stable Diffusion Output"),
315
  ],
 
290
  'Matrix':'styles/learned_embeds_matrix.bin',
291
  'Oil Painting':'styles/learned_embeds_oil.bin',
292
  }
 
293
 
294
  def inference(prompt, style,seed):
295
 
 
306
  examples = [["Pink Ferrari Car", 24041975,"Manga"], ["A man sipping tea wearing a spacesuit on the moon",24041975, "GTA-5"]] # Added valid styles
307
 
308
  demo = gr.Interface(inference,
309
+ inputs = [gr.Textbox(label='Prompt', value='Pink Ferrari Car'), gr.Textbox(label='Seed', value=24041975),
310
+ gr.Dropdown(['Dr Strange', 'GTA-5', 'Manga', 'Pokemon','Illustration','Matrix','Oil Painting'], label='Style')],
 
311
  outputs = [
312
  gr.Image(label="Stable Diffusion Output"),
313
  ],