Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def generate(pdf_file):
|
|
| 40 |
text = extract_pdf(pdf_file)
|
| 41 |
|
| 42 |
# 🔹 IMPORTANT: limitează contextul
|
| 43 |
-
text = text[:
|
| 44 |
|
| 45 |
prompt = f"""
|
| 46 |
Generate a conversation between an anchor and an author based ONLY on the article below.
|
|
|
|
| 40 |
text = extract_pdf(pdf_file)
|
| 41 |
|
| 42 |
# 🔹 IMPORTANT: limitează contextul
|
| 43 |
+
text = text[:1500]
|
| 44 |
|
| 45 |
prompt = f"""
|
| 46 |
Generate a conversation between an anchor and an author based ONLY on the article below.
|