Truong-Phuc Nguyen
commited on
Commit
•
689c44c
1
Parent(s):
f7b2bd4
Update app.py
Browse files
app.py
CHANGED
@@ -157,13 +157,13 @@ if len(df) != 0:
|
|
157 |
d_difficulty = col_eval_5.selectbox(label='[D] Difficulty:', options=options, index=options.index(d_difficulty_value))
|
158 |
|
159 |
if btn_generate_distractor:
|
160 |
-
if filename_input == '
|
161 |
expert = 'biologist'
|
162 |
-
elif filename_input == '
|
163 |
expert = 'geographer'
|
164 |
-
elif filename_input == '
|
165 |
expert = 'historian'
|
166 |
-
elif filename_input == '
|
167 |
expert = 'civic educator'
|
168 |
url = 'https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent'
|
169 |
headers = {'Content-Type': 'application/json'}
|
|
|
157 |
d_difficulty = col_eval_5.selectbox(label='[D] Difficulty:', options=options, index=options.index(d_difficulty_value))
|
158 |
|
159 |
if btn_generate_distractor:
|
160 |
+
if filename_input == 'BiologyQA_demo.csv':
|
161 |
expert = 'biologist'
|
162 |
+
elif filename_input == 'GeographyQA_demo.csv':
|
163 |
expert = 'geographer'
|
164 |
+
elif filename_input == 'HistoryQA_demo.csv':
|
165 |
expert = 'historian'
|
166 |
+
elif filename_input == 'CivicEduQA_demo.csv':
|
167 |
expert = 'civic educator'
|
168 |
url = 'https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent'
|
169 |
headers = {'Content-Type': 'application/json'}
|