quarterturn commited on
Commit
be71aca
1 Parent(s): f3ff182

bugfix for main.py

Browse files
images/00000-203229662.png DELETED

Git LFS Details

  • SHA256: e948bb833c60ca18596f2ddee627d8d85eef57360c8f2f85d6c06d44bdec7782
  • Pointer size: 131 Bytes
  • Size of remote file: 702 kB
images/00000-203229662.txt DELETED
@@ -1 +0,0 @@
1
- The image depicts a striking scene from the movie Black Swan. The ballerina, portrayed by Natalie Portman, is standing in a powerful, dramatic pose. Her body is elongated, with her arms outstretched to the sides, creating a sense of balance and tension. Her head is tilted back, gazing upwards, which adds to the intensity of the composition. The dancer's skin is pale, and her eyes are wide open, likely a deep blue or green, though the exact color is difficult to discern in this still. Her hair is dark, possibly black or dark brown, and appears to be styled in an elegant updo, though the exact style is not clear from this angle. The ballerina's body type is slender and athletic, reflecting her profession as a dancer. She is wearing a black leotard, which contrasts sharply with her pale skin and dark hair. The lighting in the scene is dramatic, with shadows playing across her face and body, emphasizing the intensity of the moment. This image captures the essence of the film's themes of obsession, dedication, and the psychological toll of pursuing perfection in dance.
 
 
images/00006-2234503665.png DELETED

Git LFS Details

  • SHA256: 9c6a6e63cdf23370ce5f20160e15a89d2b52fe92fd39fc289746e3418b7365d2
  • Pointer size: 131 Bytes
  • Size of remote file: 866 kB
images/00006-2234503665.txt DELETED
@@ -1 +0,0 @@
1
- The image depicts a striking scene from the movie Black Swan. The ballerina, portrayed by Natalie Portman, is standing in a powerful, dramatic pose. Her body is elongated, with her arms outstretched to the sides, creating a sense of balance and tension. Her head is tilted back, gazing upwards, which adds to the intensity of the composition. The dancer's skin is pale, and her eyes are wide open, likely a deep blue or green, though the exact color is difficult to discern in this still. Her hair is dark, possibly black or dark brown, and appears to be styled in an elegant updo, though the exact style is not clear from this angle. The ballerina's body type is slender and athletic, reflecting her profession as a dancer. She is wearing a black leotard, which contrasts sharply with her pale skin and dark hair. The lighting in the scene is dramatic, with shadows playing across her face and body, emphasizing the intensity of the moment. This image captures the essence of the film's themes of obsession, dedication, and the psychological toll of pursuing perfection in dance.
 
 
images/00030-4075734474.png DELETED

Git LFS Details

  • SHA256: 987d9f0ef256156f6182cefe1bfabbd304914af854a5e06c6e787fff795050aa
  • Pointer size: 131 Bytes
  • Size of remote file: 957 kB
images/00030-4075734474.txt DELETED
@@ -1 +0,0 @@
1
- The image depicts a striking scene from the movie Black Swan. The ballerina, portrayed by Natalie Portman, is standing in a powerful, dramatic pose. Her body is elongated, with her arms outstretched to the sides, creating a sense of balance and tension. Her head is tilted back, gazing upwards, which adds to the intensity of the composition. The dancer's skin is pale, and her eyes are wide open, likely a deep blue or green, though the exact color is difficult to discern in this still. Her hair is dark, possibly black or dark brown, and appears to be styled in an elegant updo, though the exact style is not clear from this angle. The ballerina's body type is slender and athletic, reflecting her profession as a dancer. She is wearing a black leotard, which contrasts sharply with her pale skin and dark hair. The lighting in the scene is dramatic, with shadows playing across her face and body, emphasizing the intensity of the moment. This image captures the essence of the film's themes of obsession, dedication, and the psychological toll of pursuing perfection in dance.
 
 
main.py CHANGED
@@ -66,6 +66,9 @@ else:
66
  device_map='auto',
67
  )
68
  model.to(dtype=torch.bfloat16)
 
 
 
69
 
70
  def unzip_images(zip_file):
71
  # Create a unique directory for extracted images inside the "images" directory
 
66
  device_map='auto',
67
  )
68
  model.to(dtype=torch.bfloat16)
69
+
70
+ generation_config = GenerationConfig(max_new_tokens=300, stop_strings="<|endoftext|>")
71
+ bits_and_bytes_config = BitsAndBytesConfig()
72
 
73
  def unzip_images(zip_file):
74
  # Create a unique directory for extracted images inside the "images" directory