Update app.py
Browse files
app.py
CHANGED
@@ -90,10 +90,10 @@ 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+"\n\n
|
94 |
ai_int=random.randint(0,10)
|
95 |
ai_helpers=["https://chatgpt.com/ - An AI chatbot","https://www.grammarly.com/ - Help with grammar and writing!","https://www.any.do/ - Creates a to do list to help you get your tasks completed!","https://scheduler.ai/- AI optimizes your schedule and works around pre-scheduled deadlines","ChatGPT Data Analyst - Helps you visualize and analize your data","ChatGPT Logo creator - Helps to create professional logos for companies or brands","ScholarGPT - Enhances your reaserch capabilities","ChatGPT's Math solver","Tutor Me by Khan Academy","Travel Guide by capchair - helps find destinations, plan trips, and manage budgets"]
|
96 |
-
output_text=output_text+"\n\n
|
97 |
return output_text
|
98 |
|
99 |
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\n Here is a fun fact about Albert Einstein!: " + fun_facts[fun_int-1]
|
94 |
ai_int=random.randint(0,10)
|
95 |
ai_helpers=["https://chatgpt.com/ - An AI chatbot","https://www.grammarly.com/ - Help with grammar and writing!","https://www.any.do/ - Creates a to do list to help you get your tasks completed!","https://scheduler.ai/- AI optimizes your schedule and works around pre-scheduled deadlines","ChatGPT Data Analyst - Helps you visualize and analize your data","ChatGPT Logo creator - Helps to create professional logos for companies or brands","ScholarGPT - Enhances your reaserch capabilities","ChatGPT's Math solver","Tutor Me by Khan Academy","Travel Guide by capchair - helps find destinations, plan trips, and manage budgets"]
|
96 |
+
output_text=output_text+"\n\n Here is a helpful chatbot tool for you!: "+ ai_helpers[ai_int-1]
|
97 |
return output_text
|
98 |
|
99 |
except Exception as e:
|