Hieucyber2208 commited on
Commit
04ccbdd
·
verified ·
1 Parent(s): 2ab7f43

Update src/image_gen.py

Browse files
Files changed (1) hide show
  1. src/image_gen.py +1 -1
src/image_gen.py CHANGED
@@ -16,7 +16,7 @@ genai.configure(api_key=GOOGLE_API_KEY)
16
  client = InferenceClient(provider="hf-inference", api_key=HF_TOKEN)
17
 
18
  def split_text_for_images(number_of_images):
19
- with open("./text/text.txt", "r", encoding="utf-8") as file:
20
  text = file.read().strip()
21
 
22
  total_length = len(text)
 
16
  client = InferenceClient(provider="hf-inference", api_key=HF_TOKEN)
17
 
18
  def split_text_for_images(number_of_images):
19
+ with open("./text.txt", "r", encoding="utf-8") as file:
20
  text = file.read().strip()
21
 
22
  total_length = len(text)