aaliyaan commited on
Commit
468f2cb
·
1 Parent(s): b18f9a7
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ models = {
17
 
18
  # Chat Function with Context
19
  def chat_with_model(model_choice, user_message, chat_history, file=None):
20
- if model_choice == "PDF Summarizer (T5)" and file is not None:
21
  pdf_text = extract_text_from_pdf(file)
22
  user_message += f"\n\nPDF Content:\n{pdf_text}"
23
 
 
17
 
18
  # Chat Function with Context
19
  def chat_with_model(model_choice, user_message, chat_history, file=None):
20
+ if model_choice == "Resume Summarizer (T5)" and file is not None:
21
  pdf_text = extract_text_from_pdf(file)
22
  user_message += f"\n\nPDF Content:\n{pdf_text}"
23