JamalAG commited on
Commit
35e8378
1 Parent(s): 3e7bb7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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.