sarim commited on
Commit
7cd5037
·
1 Parent(s): fb2cae3
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -34,7 +34,7 @@ summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
34
 
35
 
36
 
37
- def split_into_token_chunks(text: str, max_tokens: int = 6000) -> list:
38
  """
39
  Splits a long string into chunks of a specified maximum number of tokens (words).
40
 
@@ -67,13 +67,12 @@ async def ppt_content(data):
67
  ],
68
  system_prompt=(
69
  "You are an expert in making power-point perssentation",
70
- "Create 6 sliders",
71
  "Title Slide: short into about the presentation",
72
  "Methodology Slide: Summarize the methodology in detail",
73
  "Results Slide: Present key findings in detail in simple text and bullet points.",
74
  "Discussion Slide: Summarize the implications and limitations.",
75
  "Conclusion Slide: State the overall conclusion.",
76
- "Reference Slide: Include all citations used.",
77
  "Each slide should be seperate",
78
  "Each slide should have 4 parts :"
79
  "1. Title : title of the slide ",
 
34
 
35
 
36
 
37
+ def split_into_token_chunks(text: str, max_tokens: int = 5000) -> list:
38
  """
39
  Splits a long string into chunks of a specified maximum number of tokens (words).
40
 
 
67
  ],
68
  system_prompt=(
69
  "You are an expert in making power-point perssentation",
70
+ "Create 5 sliders",
71
  "Title Slide: short into about the presentation",
72
  "Methodology Slide: Summarize the methodology in detail",
73
  "Results Slide: Present key findings in detail in simple text and bullet points.",
74
  "Discussion Slide: Summarize the implications and limitations.",
75
  "Conclusion Slide: State the overall conclusion.",
 
76
  "Each slide should be seperate",
77
  "Each slide should have 4 parts :"
78
  "1. Title : title of the slide ",