ariel79 commited on
Commit
6d72c44
·
verified ·
1 Parent(s): 576e9e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -90,7 +90,7 @@ def generate_response(user_query, relevant_segment):
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
 
96
  except Exception as e:
 
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+"\n Here is a fun fact about Albert Einstein!: " + fun_facts[fun_int-1]
94
  return output_text
95
 
96
  except Exception as e: