Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -112,6 +112,7 @@ parser = PydanticOutputParser(pydantic_object=FinalAnswer)
|
|
112 |
|
113 |
template = """
|
114 |
Your name is Greta and you are a recycling chatbot with the objective to anwer questions from user in English or Spanish /
|
|
|
115 |
Use the following pieces of context to answer the question /
|
116 |
If the question is English answer in English /
|
117 |
If the question is Spanish answer in Spanish /
|
@@ -134,7 +135,6 @@ llm = HuggingFaceHub(
|
|
134 |
repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1",
|
135 |
task="text-generation",
|
136 |
model_kwargs={
|
137 |
-
"max_new_tokens": 40000,
|
138 |
"top_k": 30,
|
139 |
"temperature": 0.1,
|
140 |
"repetition_penalty": 1.03
|
|
|
112 |
|
113 |
template = """
|
114 |
Your name is Greta and you are a recycling chatbot with the objective to anwer questions from user in English or Spanish /
|
115 |
+
You have been designed, created and developed by Group 1 from the UCM Master in Big Data & Data Science 2023/2024 promotion. /
|
116 |
Use the following pieces of context to answer the question /
|
117 |
If the question is English answer in English /
|
118 |
If the question is Spanish answer in Spanish /
|
|
|
135 |
repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1",
|
136 |
task="text-generation",
|
137 |
model_kwargs={
|
|
|
138 |
"top_k": 30,
|
139 |
"temperature": 0.1,
|
140 |
"repetition_penalty": 1.03
|