testing with llama3
Browse files- src/pdfchatbot.py +3 -3
src/pdfchatbot.py
CHANGED
|
@@ -71,7 +71,7 @@ class PDFChatBot:
|
|
| 71 |
if not text:
|
| 72 |
raise gr.Error('Enter text')
|
| 73 |
history.append((text, ''))
|
| 74 |
-
self.chunk_size_slider.interactive = False
|
| 75 |
return history
|
| 76 |
|
| 77 |
def create_prompt_template(self):
|
|
@@ -194,8 +194,8 @@ class PDFChatBot:
|
|
| 194 |
Returns:
|
| 195 |
PIL.Image.Image: The rendered page as an image.
|
| 196 |
"""
|
| 197 |
-
if self.chunk_size_slider.interactive == False:
|
| 198 |
-
|
| 199 |
print(chunk_size)
|
| 200 |
doc = fitz.open(file.name)
|
| 201 |
page = doc[self.page]
|
|
|
|
| 71 |
if not text:
|
| 72 |
raise gr.Error('Enter text')
|
| 73 |
history.append((text, ''))
|
| 74 |
+
#self.chunk_size_slider.interactive = False
|
| 75 |
return history
|
| 76 |
|
| 77 |
def create_prompt_template(self):
|
|
|
|
| 194 |
Returns:
|
| 195 |
PIL.Image.Image: The rendered page as an image.
|
| 196 |
"""
|
| 197 |
+
#if self.chunk_size_slider.interactive == False:
|
| 198 |
+
# self.chunk_size_slider.interactive = True
|
| 199 |
print(chunk_size)
|
| 200 |
doc = fitz.open(file.name)
|
| 201 |
page = doc[self.page]
|