Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def generate_response(user_query, relevant_segment):
|
|
89 |
# Append assistant's message to messages list for context
|
90 |
messages.append({"role": "assistant", "content": output_text})
|
91 |
fun_int=random.randint(0,11)
|
92 |
-
fun_facts=["Young Einstein didn't talk until much later in his childhood.","Einstein had larger-than-average perietal lobes.","Einstein was a talented violinist","Einstein's brain was preserved after his death!","Einstein started as a teacher, but couldn't find a job.","Einstein's famous equation E=mc² was announced in 1905.","Einstein won The Nobel Prize in Physics in 1921","Einstien did not wear socks!","Einstein loved sailing.",'Einstein once said -"If you can not explain it simply, you don
|
93 |
output_text=output_text+fun_facts[fun_int-1]
|
94 |
return output_text
|
95 |
|
|
|
89 |
# Append assistant's message to messages list for context
|
90 |
messages.append({"role": "assistant", "content": output_text})
|
91 |
fun_int=random.randint(0,11)
|
92 |
+
fun_facts=["Young Einstein didn't talk until much later in his childhood.","Einstein had larger-than-average perietal lobes.","Einstein was a talented violinist","Einstein's brain was preserved after his death!","Einstein started as a teacher, but couldn't find a job.","Einstein's famous equation E=mc² was announced in 1905.","Einstein won The Nobel Prize in Physics in 1921","Einstien did not wear socks!","Einstein loved sailing.",'Einstein once said -"If you can not explain it simply, you don not understand it well enough."','Einstein once said- "Logic will get you from A to B. Imagination will get you anywhere."']
|
93 |
output_text=output_text+fun_facts[fun_int-1]
|
94 |
return output_text
|
95 |
|