Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def get_conversation_chain(vectorstore):
|
|
48 |
# tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-base")
|
49 |
# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-base")
|
50 |
|
51 |
-
llm = HuggingFaceHub(repo_id="
|
52 |
|
53 |
memory = ConversationBufferMemory(
|
54 |
memory_key='chat_history', return_messages=True)
|
|
|
48 |
# tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-base")
|
49 |
# model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-base")
|
50 |
|
51 |
+
llm = HuggingFaceHub(repo_id="ramsrigouthamg/t5_sentence_paraphraser", huggingfacehub_api_token=hub_token, model_kwargs={"temperature":0.5, "max_length":20})
|
52 |
|
53 |
memory = ConversationBufferMemory(
|
54 |
memory_key='chat_history', return_messages=True)
|