Spaces:
Runtime error
Runtime error
Ankitajadhav
commited on
Commit
•
00896a9
1
Parent(s):
ae3604c
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import chromadb
|
|
9 |
from datasets import load_dataset
|
10 |
# from transformers import AutoModelForCausalLM, AutoTokenizer
|
11 |
import gradio as gr
|
12 |
-
from transformers import AutoTokenizer,
|
13 |
|
14 |
|
15 |
|
@@ -87,8 +87,8 @@ vector_store.populate_vectors(dataset=None)
|
|
87 |
# tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
|
88 |
# model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
|
89 |
|
90 |
-
|
91 |
-
|
92 |
|
93 |
# Define the chatbot response function
|
94 |
def chatbot_response(user_input):
|
|
|
9 |
from datasets import load_dataset
|
10 |
# from transformers import AutoModelForCausalLM, AutoTokenizer
|
11 |
import gradio as gr
|
12 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
13 |
|
14 |
|
15 |
|
|
|
87 |
# tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
|
88 |
# model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
|
89 |
|
90 |
+
tokenizer = AutoTokenizer.from_pretrained("merve/chatgpt-prompts-bart-long")
|
91 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("merve/chatgpt-prompts-bart-long", from_tf=True)
|
92 |
|
93 |
# Define the chatbot response function
|
94 |
def chatbot_response(user_input):
|