new code
Browse files- src/pdfchatbot.py +1 -1
src/pdfchatbot.py
CHANGED
|
@@ -77,7 +77,7 @@ class PDFChatBot:
|
|
| 77 |
@spaces.GPU
|
| 78 |
def create_organic_response(self, history, query):
|
| 79 |
self.get_organic_context(query)
|
| 80 |
-
tokenizer =
|
| 81 |
messages = [
|
| 82 |
{"role": "system", "content": "From the the contained given below, answer the question of user \n " + self.current_context},
|
| 83 |
{"role": "user", "content": query},
|
|
|
|
| 77 |
@spaces.GPU
|
| 78 |
def create_organic_response(self, history, query):
|
| 79 |
self.get_organic_context(query)
|
| 80 |
+
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct")
|
| 81 |
messages = [
|
| 82 |
{"role": "system", "content": "From the the contained given below, answer the question of user \n " + self.current_context},
|
| 83 |
{"role": "user", "content": query},
|