DazDin commited on
Commit
dedaf43
·
verified ·
1 Parent(s): 0115401

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -36,7 +36,9 @@ def gen_fn(model_str, prompt, negative_prompt):
36
  if model_str == 'NA':
37
  return None
38
  noise = str(randint(0, 9999))
39
- return models_load[model_str](f'{prompt} {negative_prompt} {noise}')
 
 
40
 
41
  def make_me():
42
  with gr.Row():
 
36
  if model_str == 'NA':
37
  return None
38
  noise = str(randint(0, 9999))
39
+ if negative_prompt:
40
+ prompt += f" --negative-prompt {negative_prompt}"
41
+ return models_load[model_str](f'{prompt} {noise}')
42
 
43
  def make_me():
44
  with gr.Row():