Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ def get_prompt(text,subject,topic):
|
|
202 |
|
203 |
def pdf_generator(API,class_name, subject,chapter,query=None):
|
204 |
# Create a list to store the generated PDF file paths
|
205 |
-
pdf_file_path = f"
|
206 |
pdf_text = summarize_text(extract_text_from_pdf(pdf_file_path))
|
207 |
study_material = generate_study_material(API,pdf_text,subject,query)
|
208 |
study_material = markdown_to_pdf(study_material)
|
|
|
202 |
|
203 |
def pdf_generator(API,class_name, subject,chapter,query=None):
|
204 |
# Create a list to store the generated PDF file paths
|
205 |
+
pdf_file_path = f"Books/{class_name}/{subject}/{chapter}.pdf"
|
206 |
pdf_text = summarize_text(extract_text_from_pdf(pdf_file_path))
|
207 |
study_material = generate_study_material(API,pdf_text,subject,query)
|
208 |
study_material = markdown_to_pdf(study_material)
|