mesage
Browse files
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 == "
|
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 |
|