sarim commited on
Commit
599d94c
·
1 Parent(s): 6304ee0

update prompt

Browse files
Files changed (2) hide show
  1. app.py +7 -2
  2. presentation.py +1 -1
app.py CHANGED
@@ -27,13 +27,18 @@ async def ppt_content(data):
27
  system_prompt=(
28
  "You are an expert in making power-point perssentation",
29
  "Create 6 sliders",
30
- "Each slide should be seperate"
31
- "Title Slide: Include the document's title, subtitle, author, and date.",
32
  "Methodology Slide: Summarize the methodology in detail",
33
  "Results Slide: Present key findings in detail in simple text and bullet points.",
34
  "Discussion Slide: Summarize the implications and limitations.",
35
  "Conclusion Slide: State the overall conclusion.",
36
  "Reference Slide: Include all citations used.",
 
 
 
 
 
 
 
37
 
38
  ))
39
  listOfString = split_long_string("".join(data))
 
27
  system_prompt=(
28
  "You are an expert in making power-point perssentation",
29
  "Create 6 sliders",
 
 
30
  "Methodology Slide: Summarize the methodology in detail",
31
  "Results Slide: Present key findings in detail in simple text and bullet points.",
32
  "Discussion Slide: Summarize the implications and limitations.",
33
  "Conclusion Slide: State the overall conclusion.",
34
  "Reference Slide: Include all citations used.",
35
+ "Each slide should be seperate",
36
+ "Each slide should have 4 parts :"
37
+ "1. Title : title of the slide ",
38
+ "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.",
39
+ "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.",
40
+ "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."
41
+ "Title Slide: Include the document's title, subtitle, author, and date.",
42
 
43
  ))
44
  listOfString = split_long_string("".join(data))
presentation.py CHANGED
@@ -19,7 +19,7 @@ class Presentation(BaseModel):
19
  description="The 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."
20
  )
21
  bulletPoints: Optional[List[str]] = Field(
22
- description="A list of bullet points summarizing key information on the slide. Each bullet point should be short, focused, and highlight a specific aspect of the slide's topic. Avoid overcrowding; ideally, limit to 3-5 points."
23
  )
24
  imageSuggestion: Optional[str] = Field(
25
  description="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."
 
19
  description="The 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."
20
  )
21
  bulletPoints: Optional[List[str]] = Field(
22
+ description="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."
23
  )
24
  imageSuggestion: Optional[str] = Field(
25
  description="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."