Update Postive_magic as a dict from list

#8
by voidcoder - opened
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -55,10 +55,10 @@ else:
55
  pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
56
  pipe = pipe.to(device)
57
 
58
- positive_magic = [
59
  "en": "Ultra HD, 4K, cinematic composition." # for english prompt,
60
  "zh": "่ถ…ๆธ…๏ผŒ4K๏ผŒ็”ตๅฝฑ็บงๆž„ๅ›พ" # for chinese prompt,
61
- ]
62
 
63
  # Generate image
64
  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'''
 
55
  pipe = DiffusionPipeline.from_pretrained(model_name, torch_dtype=torch_dtype)
56
  pipe = pipe.to(device)
57
 
58
+ positive_magic = {
59
  "en": "Ultra HD, 4K, cinematic composition." # for english prompt,
60
  "zh": "่ถ…ๆธ…๏ผŒ4K๏ผŒ็”ตๅฝฑ็บงๆž„ๅ›พ" # for chinese prompt,
61
+ }
62
 
63
  # Generate image
64
  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'''