Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,8 @@ gptj = gpt4all.GPT4All(PATH)
|
|
19 |
|
20 |
def generate_response(question):
|
21 |
#response = llm_chain.run(question)
|
22 |
-
question = [{"role": "user", "content" :
|
23 |
-
|
24 |
return response
|
25 |
|
26 |
|
|
|
19 |
|
20 |
def generate_response(question):
|
21 |
#response = llm_chain.run(question)
|
22 |
+
question = [{"role": "user", "content" : question}]
|
23 |
+
response = gptj.chat_completion(question)
|
24 |
return response
|
25 |
|
26 |
|