Spaces:
Running
Running
convert list into string
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ async def ppt_content(data):
|
|
78 |
"3. Bullet point: A list of bullet points summarizing key information on the slide. Each bullet point should be detail, long, and highlight a specific aspect of the slide's topic. ideally, limit to 3-5 points.",
|
79 |
"4. Image Suggestion: A prompt for generating an image to complement the slide content. Describe the desired visual in detail, including elements, style, and relevance to the topic. Ensure the prompt is actionable for AI tools.",
|
80 |
))
|
81 |
-
listOfString = split_into_token_chunks(data)
|
82 |
print(len(listOfString))
|
83 |
# for i, chunk in enumerate(listOfString):
|
84 |
# print(f"Chunk {i}:\n{chunk}\n")
|
|
|
78 |
"3. Bullet point: A list of bullet points summarizing key information on the slide. Each bullet point should be detail, long, and highlight a specific aspect of the slide's topic. ideally, limit to 3-5 points.",
|
79 |
"4. Image Suggestion: A prompt for generating an image to complement the slide content. Describe the desired visual in detail, including elements, style, and relevance to the topic. Ensure the prompt is actionable for AI tools.",
|
80 |
))
|
81 |
+
listOfString = split_into_token_chunks("".join(data))
|
82 |
print(len(listOfString))
|
83 |
# for i, chunk in enumerate(listOfString):
|
84 |
# print(f"Chunk {i}:\n{chunk}\n")
|