memn commited on
Commit
3d51ea4
·
verified ·
1 Parent(s): 8d4a33f

Update app.py

Browse files

Update Model Identifier: Changed the model identifier from gpt-3 to distilgpt2, which is a valid Hugging Face model.

Files changed (1) hide show
  1. app.py +1 -1
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='gpt-3')
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"