Spaces:
Build error
Build error
app.py
CHANGED
|
@@ -14,6 +14,7 @@ class GUI:
|
|
| 14 |
#load pdf and create all embedings
|
| 15 |
def pdf_init(self, api_key, pdf_path):
|
| 16 |
openai.api_key = api_key
|
|
|
|
| 17 |
with open(pdf_path,'r',encoding='utf-8') as f:
|
| 18 |
texts = f.readlines()
|
| 19 |
#按照行对文章进行切割
|
|
|
|
| 14 |
#load pdf and create all embedings
|
| 15 |
def pdf_init(self, api_key, pdf_path):
|
| 16 |
openai.api_key = api_key
|
| 17 |
+
print("--------------pdf_path is:",pdf_path)
|
| 18 |
with open(pdf_path,'r',encoding='utf-8') as f:
|
| 19 |
texts = f.readlines()
|
| 20 |
#按照行对文章进行切割
|