Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,7 @@ 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 |
|
|
|
21 |
#response = llm_chain.run(question)
|
22 |
question = [{"role": "user", "content" : question}]
|
23 |
response = gptj.chat_completion(question)
|
24 |
+
response = response if response else "Sorry, Try Again"
|
25 |
return response
|
26 |
|
27 |
|