crockrocks commited on
Commit
a064842
·
verified ·
1 Parent(s): 4516c4d

Fixed Syntax Error

Browse files

Fixed SyntaxError: used dictionary with curly braces in positive_magic instead of list

Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -56,10 +56,10 @@ else:
56
  pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
57
  pipe = pipe.to(device)
58
 
59
- positive_magic = [
60
  "en": "Ultra HD, 4K, cinematic composition." # for english prompt,
61
  "zh": "超清,4K,电影级构图" # for chinese prompt,
62
- ]
63
 
64
  # Generate image
65
  prompt = '''A coffee shop entrance features a chalkboard sign reading "Qwen Coffee 😊 $2 per cup," with a neon light beside it displaying "通义千问". Next to it hangs a poster showing a beautiful Chinese woman, and beneath the poster is written "π≈3.1415926-53589793-23846264-33832795-02384197". Ultra HD, 4K, cinematic composition'''
 
56
  pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
57
  pipe = pipe.to(device)
58
 
59
+ positive_magic = {
60
  "en": "Ultra HD, 4K, cinematic composition." # for english prompt,
61
  "zh": "超清,4K,电影级构图" # for chinese prompt,
62
+ }
63
 
64
  # Generate image
65
  prompt = '''A coffee shop entrance features a chalkboard sign reading "Qwen Coffee 😊 $2 per cup," with a neon light beside it displaying "通义千问". Next to it hangs a poster showing a beautiful Chinese woman, and beneath the poster is written "π≈3.1415926-53589793-23846264-33832795-02384197". Ultra HD, 4K, cinematic composition'''