Spaces:
Running
Running
update prompt
Browse files
app.py
CHANGED
@@ -20,15 +20,16 @@ def split_long_string(long_string, chunk_size=6000):
|
|
20 |
async def ppt_content(data):
|
21 |
agent = Agent(model,system_prompt=(
|
22 |
"You are an expert in making power-point perssentation",
|
23 |
-
"Convert the content of the attached PDF into PowerPoint slides",
|
24 |
"Title Slide: Include the document's title, subtitle, author, and date.",
|
25 |
-
"Methodology Slide: Summarize the methodology in bullet points",
|
26 |
-
"Results Slide: Present key findings
|
27 |
"Discussion Slide: Summarize the implications and limitations.",
|
28 |
"Conclusion Slide: State the overall conclusion.",
|
29 |
"Reference Slide: Include all citations used."
|
30 |
))
|
31 |
listOfString = split_long_string("".join(data))
|
|
|
|
|
32 |
|
33 |
result_1 = agent.run_sync(user_prompt = listOfString[0])
|
34 |
result_2 = agent.run_sync(user_prompt = listOfString[1],message_history=result_1.new_messages())
|
|
|
20 |
async def ppt_content(data):
|
21 |
agent = Agent(model,system_prompt=(
|
22 |
"You are an expert in making power-point perssentation",
|
|
|
23 |
"Title Slide: Include the document's title, subtitle, author, and date.",
|
24 |
+
"Methodology Slide: Summarize the methodology in detail in bullet points",
|
25 |
+
"Results Slide: Present key findings in detail in simple text and bullet points.",
|
26 |
"Discussion Slide: Summarize the implications and limitations.",
|
27 |
"Conclusion Slide: State the overall conclusion.",
|
28 |
"Reference Slide: Include all citations used."
|
29 |
))
|
30 |
listOfString = split_long_string("".join(data))
|
31 |
+
print(len(listOfString))
|
32 |
+
|
33 |
|
34 |
result_1 = agent.run_sync(user_prompt = listOfString[0])
|
35 |
result_2 = agent.run_sync(user_prompt = listOfString[1],message_history=result_1.new_messages())
|