achref commited on
Commit
49b69dc
·
1 Parent(s): 1eb71cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import PyPDF2
6
  from file_operations import open_file
7
 
8
  prompts = [
9
- "Can you give me a very clear explanation of the core assertions, implications, and mechanics mentioned in this paper?",
10
  "Can you give a short summary with bullet points and key takeaways",
11
  "Can you give me an analogy or metaphor that will help explain this to a broad audience.",
12
  ]
@@ -40,6 +40,7 @@ async def process_pdf_content(text, prompts):
40
 
41
 
42
  def process_pdf(pdf_file, prompt1, prompt2, prompt3, key):
 
43
  openai.api_key = key
44
  # Open the PDF file
45
  prompts = [
 
6
  from file_operations import open_file
7
 
8
  prompts = [
9
+ "Can you give me a very clear explanation of the core assertions, mechanics mentioned in this paper?",
10
  "Can you give a short summary with bullet points and key takeaways",
11
  "Can you give me an analogy or metaphor that will help explain this to a broad audience.",
12
  ]
 
40
 
41
 
42
  def process_pdf(pdf_file, prompt1, prompt2, prompt3, key):
43
+
44
  openai.api_key = key
45
  # Open the PDF file
46
  prompts = [