sarim commited on
Commit
03b4c19
·
1 Parent(s): c89acd4

update try new thing

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -11,6 +11,7 @@ import presentation as customClass
11
 
12
  api_key = os.getenv("API_KEY")
13
  data = []
 
14
 
15
 
16
 
@@ -40,7 +41,8 @@ async def ppt_content(data):
40
  "2. Text: he detailed description or narrative content of the slide. This should include key information, explanations, or supporting arguments. Keep it concise yet informative to avoid overwhelming the audience.",
41
  "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.",
42
  "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.",
43
-
 
44
 
45
 
46
  ))
@@ -54,7 +56,7 @@ async def ppt_content(data):
54
 
55
 
56
 
57
- result_1 = agent.run_sync(user_prompt = "".join(data))
58
  #result_2 = agent.run_sync(user_prompt = listOfString[1],message_history=result_1.new_messages())
59
 
60
  print(result_1.data)
 
11
 
12
  api_key = os.getenv("API_KEY")
13
  data = []
14
+ last_message = ''
15
 
16
 
17
 
 
41
  "2. Text: he detailed description or narrative content of the slide. This should include key information, explanations, or supporting arguments. Keep it concise yet informative to avoid overwhelming the audience.",
42
  "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.",
43
  "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.",
44
+ "Below is the text extracted from pdf",
45
+ "".join(data)
46
 
47
 
48
  ))
 
56
 
57
 
58
 
59
+ result_1 = agent.run_sync(user_prompt = "Create content for presentation and pdf extracted text is in 'system_prompt'")
60
  #result_2 = agent.run_sync(user_prompt = listOfString[1],message_history=result_1.new_messages())
61
 
62
  print(result_1.data)