Anujgr8 commited on
Commit
2f7afce
1 Parent(s): 543cb00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"Main_content/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)
 
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)