multimodalart HF staff commited on
Commit
cad6ebe
1 Parent(s): 33469f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,7 +17,8 @@ def read_content(file_path: str) -> str:
17
  return content
18
 
19
  def predict(dict, prompt="", negative_prompt="", guidance_scale=7.5, steps=20, strength=1.0, scheduler="EulerDiscreteScheduler"):
20
-
 
21
  scheduler_class_name = scheduler.split("-")[0]
22
 
23
  add_kwargs = {}
 
17
  return content
18
 
19
  def predict(dict, prompt="", negative_prompt="", guidance_scale=7.5, steps=20, strength=1.0, scheduler="EulerDiscreteScheduler"):
20
+ if negative_prompt == "":
21
+ negative_prompt = None
22
  scheduler_class_name = scheduler.split("-")[0]
23
 
24
  add_kwargs = {}