Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
| 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 = [
|