Alexander Watson commited on
Commit
63a19c9
1 Parent(s): 76d1b05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -266,7 +266,8 @@ def main():
266
  "Max tokens",
267
  min_value=1,
268
  max_value=1024,
269
- value=st.session_state.get("max_tokens", 200),
 
270
  help="Specify the maximum number of tokens for generated text",
271
  )
272
  st.session_state.max_tokens = max_tokens
@@ -360,10 +361,10 @@ def main():
360
 
361
  instruction_complexity_target = st.slider(
362
  "Instruction Complexity Target",
363
- min_value=0.0,
364
- max_value=1.0,
365
- value=st.session_state.get("instruction_complexity_target", 0.7),
366
- step=0.1,
367
  help="Specify the target complexity for instructions",
368
  )
369
  st.session_state.instruction_complexity_target = (
@@ -402,10 +403,10 @@ def main():
402
 
403
  response_complexity_target = st.slider(
404
  "Response Complexity Target",
405
- min_value=0.0,
406
- max_value=1.0,
407
- value=st.session_state.get("response_complexity_target", 0.8),
408
- step=0.1,
409
  help="Specify the target complexity for responses",
410
  )
411
  st.session_state.response_complexity_target = response_complexity_target
@@ -496,7 +497,7 @@ new_df = synthesizer.generate()
496
  with st.expander("Synthetic Data", expanded=True):
497
  st.subheader("Synthetic Data Generation")
498
  progress_bar = st.progress(0)
499
- tab1, tab2 = st.tabs(["synthetic Data", "Logs"])
500
  with tab1:
501
  synthetic_data_placeholder = st.empty()
502
  st.info(
 
266
  "Max tokens",
267
  min_value=1,
268
  max_value=1024,
269
+ step=64,
270
+ value=st.session_state.get("max_tokens", 192),
271
  help="Specify the maximum number of tokens for generated text",
272
  )
273
  st.session_state.max_tokens = max_tokens
 
361
 
362
  instruction_complexity_target = st.slider(
363
  "Instruction Complexity Target",
364
+ min_value=1,
365
+ max_value=5,
366
+ value=st.session_state.get("instruction_complexity_target", 3),
367
+ step=1,
368
  help="Specify the target complexity for instructions",
369
  )
370
  st.session_state.instruction_complexity_target = (
 
403
 
404
  response_complexity_target = st.slider(
405
  "Response Complexity Target",
406
+ min_value=1,
407
+ max_value=5,
408
+ value=st.session_state.get("response_complexity_target", 3),
409
+ step=1,
410
  help="Specify the target complexity for responses",
411
  )
412
  st.session_state.response_complexity_target = response_complexity_target
 
497
  with st.expander("Synthetic Data", expanded=True):
498
  st.subheader("Synthetic Data Generation")
499
  progress_bar = st.progress(0)
500
+ tab1, tab2 = st.tabs(["Synthetic Data", "Logs"])
501
  with tab1:
502
  synthetic_data_placeholder = st.empty()
503
  st.info(