Spaces:
Sleeping
Sleeping
Update src/image_gen.py
Browse files- 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
|
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)
|