Update app.py
Browse filesUpdate Model Identifier: Changed the model identifier from gpt-3 to distilgpt2, which is a valid Hugging Face model.
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import PyPDF2
|
|
| 4 |
import datetime
|
| 5 |
|
| 6 |
# Initialize the Hugging Face text generation pipeline
|
| 7 |
-
model = pipeline('text-generation', model='
|
| 8 |
|
| 9 |
# Load and parse the PDF file for the knowledge base
|
| 10 |
pdf_path = "/mnt/data/Einsteiger Guide Leben im Einklang mit dem weiblichen Zyklus.pdf"
|
|
|
|
| 4 |
import datetime
|
| 5 |
|
| 6 |
# Initialize the Hugging Face text generation pipeline
|
| 7 |
+
model = pipeline('text-generation', model='distilgpt2')
|
| 8 |
|
| 9 |
# Load and parse the PDF file for the knowledge base
|
| 10 |
pdf_path = "/mnt/data/Einsteiger Guide Leben im Einklang mit dem weiblichen Zyklus.pdf"
|