Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ from langchain.llms import HuggingFaceHub
|
|
5 |
def generate_answer(query):
|
6 |
llm = HuggingFaceHub(
|
7 |
repo_id="alpindale/goliath-120b",
|
8 |
-
model_kwargs={"temperature": 0.5, "max_length": 64, "max_new_tokens": 512}
|
|
|
9 |
)
|
10 |
prompt = f"""
|
11 |
You are a helpful AI assistant.
|
|
|
5 |
def generate_answer(query):
|
6 |
llm = HuggingFaceHub(
|
7 |
repo_id="alpindale/goliath-120b",
|
8 |
+
model_kwargs={"temperature": 0.5, "max_length": 64, "max_new_tokens": 512},
|
9 |
+
task = "text2text-generation"
|
10 |
)
|
11 |
prompt = f"""
|
12 |
You are a helpful AI assistant.
|