Spaces:
Sleeping
Sleeping
Update config.py
Browse files
config.py
CHANGED
|
@@ -1,4 +1,11 @@
|
|
| 1 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
You are BioBoko, an AI tutor designed to help students learn about microevolutionary processes in a fun and interactive way. Follow these guidelines to facilitate a game-based learning experience:
|
| 4 |
|
|
@@ -85,4 +92,72 @@ You are BioBoko, an AI tutor designed to help students learn about microevolutio
|
|
| 85 |
49. Selective Sweep
|
| 86 |
50. Background Selection
|
| 87 |
|
| 88 |
-
By following these system instructions, you will create a dynamic and supportive environment that challenges students to apply their knowledge of microevolutionary processes while honing their critical analysis skills.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#Configuration file for AI Chatbot
|
| 2 |
+
|
| 3 |
+
###########################################################################################
|
| 4 |
+
|
| 5 |
+
### System Instructions
|
| 6 |
+
|
| 7 |
+
# Below is the initial prompt that the AI will use to start the conversation with the user. The user will not see this prompt. IF you add or edit any line, make sure to keep the parentheses and the quotation marks for each line.
|
| 8 |
+
prompt = """# System Instructions for BioBoko – Your Microevolution AI Tutor
|
| 9 |
|
| 10 |
You are BioBoko, an AI tutor designed to help students learn about microevolutionary processes in a fun and interactive way. Follow these guidelines to facilitate a game-based learning experience:
|
| 11 |
|
|
|
|
| 92 |
49. Selective Sweep
|
| 93 |
50. Background Selection
|
| 94 |
|
| 95 |
+
By following these system instructions, you will create a dynamic and supportive environment that challenges students to apply their knowledge of microevolutionary processes while honing their critical analysis skills.
|
| 96 |
+
"""
|
| 97 |
+
|
| 98 |
+
###########################################################################################
|
| 99 |
+
|
| 100 |
+
### Model Configuration
|
| 101 |
+
|
| 102 |
+
# - **Model:** gpt-4o
|
| 103 |
+
# - Context Length: 128K
|
| 104 |
+
# - Input Cost per 1M Tokens: $2.50
|
| 105 |
+
# - Output Cost per 1M Tokens: $10.00
|
| 106 |
+
#
|
| 107 |
+
# - **Model:** gpt-4o-mini
|
| 108 |
+
# - Context Length: 128K
|
| 109 |
+
# - Input Cost per 1M Tokens: $0.15
|
| 110 |
+
# - Output Cost per 1M Tokens: $0.60
|
| 111 |
+
#
|
| 112 |
+
# - **Model:** o1
|
| 113 |
+
# - Context Length: 128K
|
| 114 |
+
# - Input Cost per 1M Tokens: $15.00
|
| 115 |
+
# - Output Cost per 1M Tokens: $60.00
|
| 116 |
+
#
|
| 117 |
+
# - **Model:** o1-mini
|
| 118 |
+
# - Context Length: 128K
|
| 119 |
+
# - Input Cost per 1M Tokens: $3.00
|
| 120 |
+
# - Output Cost per 1M Tokens: $12.00
|
| 121 |
+
|
| 122 |
+
# The model_name refers to the name of the model you want to use. You can choose from the following models:
|
| 123 |
+
ai_model = "gpt-4o"
|
| 124 |
+
|
| 125 |
+
# Temperature refers to the randomness/creativity of the responses. A higher temperature will result in more random/creative responses. It varies between 0 and 1.
|
| 126 |
+
temperature = 0.4
|
| 127 |
+
|
| 128 |
+
# Max_tokens refers to the maximum number of tokens (words) the AI can generate. The higher the number, the longer the response. It varies between 1 and 2048.
|
| 129 |
+
max_tokens = 400
|
| 130 |
+
|
| 131 |
+
# Frequency penalty parameter for the response. Higher penalty will result in more diverse responses. It varies between 0 and 1.
|
| 132 |
+
frequency_penalty = 0.5
|
| 133 |
+
|
| 134 |
+
# Presence penalty parameter for the response. Higher penalty will result in less repetitive responses. It varies between 0 and 1.
|
| 135 |
+
presence_penalty = 0.4
|
| 136 |
+
|
| 137 |
+
############################################################################################################
|
| 138 |
+
|
| 139 |
+
### UI Text
|
| 140 |
+
|
| 141 |
+
# Below is all the text you can customize for the app. Don't remove the quotations around the text. Don't change the variable names.
|
| 142 |
+
|
| 143 |
+
# The title of the app
|
| 144 |
+
# app_title = "Chatbot Template"
|
| 145 |
+
|
| 146 |
+
# The user's instructions for the app
|
| 147 |
+
instructions = '''This is a basic chatbot template. Place user instructions here in markdown format.
|
| 148 |
+
'''
|
| 149 |
+
|
| 150 |
+
# The opening message that will be displayed in the chat when the page loads
|
| 151 |
+
opening_message = '''👋 Welcome to the Microevolution Quiz Bot!
|
| 152 |
+
|
| 153 |
+
I'm BioBoko, your AI tutor for today. I'll help you learn about microevolutionary processes through an interactive game of "Two Truths and a Lie."
|
| 154 |
+
|
| 155 |
+
In each round, I'll present three statements about microevolutionary processes - two true and one false. Your job is to identify which statement is the lie and explain why. You'll receive a score out of 5 Darwin points for each round.
|
| 156 |
+
|
| 157 |
+
If you can show that all three statements are true, you will receive a bonus of 10 Darwin points!
|
| 158 |
+
|
| 159 |
+
At anytime you can ask to change the difficulty level of the questions from 1 to 10, with 1 being the easiest and 10 being the hardest.
|
| 160 |
+
|
| 161 |
+
At what level of difficulty do you want to begin?'''
|
| 162 |
+
|
| 163 |
+
warning_message = "**Generative AI can make errors and does not replace verified and reputable online and classroom resources.**"
|