suhyun.kang commited on
Commit
71d0339
1 Parent(s): 871741c

update TODO issues

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -19,7 +19,7 @@ db = firestore.client()
19
  # TODO(#1): Add more models.
20
  SUPPORTED_MODELS = ["gpt-4", "gpt-4-turbo", "gpt-3.5-turbo", "gemini-pro"]
21
 
22
- # TODO(#1): Add more languages.
23
  SUPPORTED_TRANSLATION_LANGUAGES = ["Korean", "English"]
24
 
25
 
@@ -186,9 +186,9 @@ with gr.Blocks() as app:
186
  responses[0] = gr.Textbox(label="Model A", interactive=False)
187
  responses[1] = gr.Textbox(label="Model B", interactive=False)
188
 
189
- # TODO(#1): Display it only after the user submits the prompt.
190
- # TODO(#1): Block voting if the response_type is not set.
191
- # TODO(#1): Block voting if the user already voted.
192
  with gr.Row():
193
  option_a = gr.Button(VoteOptions.MODEL_A.value)
194
  option_a.click(
@@ -205,7 +205,7 @@ with gr.Blocks() as app:
205
  vote,
206
  states + [tie, response_type_radio, source_language, target_language])
207
 
208
- # TODO(#1): Hide it until the user votes.
209
  with gr.Accordion("Show models", open=False):
210
  with gr.Row():
211
  model_names[0] = gr.Textbox(label="Model A", interactive=False)
 
19
  # TODO(#1): Add more models.
20
  SUPPORTED_MODELS = ["gpt-4", "gpt-4-turbo", "gpt-3.5-turbo", "gemini-pro"]
21
 
22
+ # TODO(#4): Add more languages.
23
  SUPPORTED_TRANSLATION_LANGUAGES = ["Korean", "English"]
24
 
25
 
 
186
  responses[0] = gr.Textbox(label="Model A", interactive=False)
187
  responses[1] = gr.Textbox(label="Model B", interactive=False)
188
 
189
+ # TODO(#5): Display it only after the user submits the prompt.
190
+ # TODO(#6): Block voting if the response_type is not set.
191
+ # TODO(#6): Block voting if the user already voted.
192
  with gr.Row():
193
  option_a = gr.Button(VoteOptions.MODEL_A.value)
194
  option_a.click(
 
205
  vote,
206
  states + [tie, response_type_radio, source_language, target_language])
207
 
208
+ # TODO(#7): Hide it until the user votes.
209
  with gr.Accordion("Show models", open=False):
210
  with gr.Row():
211
  model_names[0] = gr.Textbox(label="Model A", interactive=False)