BtB-ExpC commited on
Commit
38e8d65
·
1 Parent(s): 64815ff

Claude 3.5 for XML

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ logger = logging.getLogger(__name__)
13
  # --- Callback to update the exercise format dropdown based on LLM selection ---
14
  def update_exercise_format(selected_model: str):
15
  # When "Claude3.5" is selected, default the format to XML; otherwise, default to Markdown.
16
- if selected_model == "Claude3.5":
17
  return gr.update(value="XML")
18
  else:
19
  return gr.update(value="Markdown")
@@ -115,7 +115,7 @@ with gr.Blocks() as demo:
115
  label="Sampling Count 🚧",
116
  interactive=True,
117
  )
118
- # Set up a change callback so that if the user selects "Claude3.5", the exercise format updates to "XML"
119
  model_choice.change(
120
  fn=update_exercise_format,
121
  inputs=[model_choice],
 
13
  # --- Callback to update the exercise format dropdown based on LLM selection ---
14
  def update_exercise_format(selected_model: str):
15
  # When "Claude3.5" is selected, default the format to XML; otherwise, default to Markdown.
16
+ if selected_model == "Claude 3.5":
17
  return gr.update(value="XML")
18
  else:
19
  return gr.update(value="Markdown")
 
115
  label="Sampling Count 🚧",
116
  interactive=True,
117
  )
118
+ # Set up a change callback so that if the user selects "Claude 3.5", the exercise format updates to "XML"
119
  model_choice.change(
120
  fn=update_exercise_format,
121
  inputs=[model_choice],