Truong-Phuc commited on
Commit
689c44c
1 Parent(s): f7b2bd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 == 'BiologyQA_Phuc.csv':
161
  expert = 'biologist'
162
- elif filename_input == 'GeographyQA_Phuc.csv':
163
  expert = 'geographer'
164
- elif filename_input == 'HistoryQA_Phuc.csv':
165
  expert = 'historian'
166
- elif filename_input == 'CivicEduQA_Phuc.csv':
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'}