YingxuHe commited on
Commit
598330f
·
verified ·
1 Parent(s): 67da2ee

Update pages.py

Browse files
Files changed (1) hide show
  1. pages.py +9 -10
pages.py CHANGED
@@ -63,9 +63,17 @@ def audio_llm():
63
  st.session_state.audio_base64 = ''
64
  st.session_state.audio_array = np.array([])
65
 
66
-
67
  if "default_instruction" not in st.session_state:
68
  st.session_state.default_instruction = ""
 
 
 
 
 
 
 
 
 
69
 
70
  col1, col2, col3 = st.columns(3)
71
 
@@ -152,15 +160,6 @@ def audio_llm():
152
  st.audio(st.session_state.audio_array, format="audio/wav", sample_rate=16000)
153
  st.session_state.update(on_upload=False, on_record=False, on_select=False)
154
 
155
- st.markdown("**Model Configuration:**")
156
- col4, col5, _ = st.columns(3)
157
-
158
- with col4:
159
- st.slider(label='Temperature', min_value=0.0, max_value=2.0, value=0.7, key='temperature')
160
-
161
- with col5:
162
- st.slider(label='Top P', min_value=0.0, max_value=1.0, value=1.0, key='top_p')
163
-
164
  st.markdown("**Example Instruction:**")
165
  st.write(st.session_state.default_instruction)
166
 
 
63
  st.session_state.audio_base64 = ''
64
  st.session_state.audio_array = np.array([])
65
 
 
66
  if "default_instruction" not in st.session_state:
67
  st.session_state.default_instruction = ""
68
+
69
+ st.markdown("**Model Configuration:**")
70
+ col4, col5, _ = st.columns(3)
71
+
72
+ with col4:
73
+ st.slider(label='Temperature', min_value=0.0, max_value=2.0, value=0.7, key='temperature')
74
+
75
+ with col5:
76
+ st.slider(label='Top P', min_value=0.0, max_value=1.0, value=1.0, key='top_p')
77
 
78
  col1, col2, col3 = st.columns(3)
79
 
 
160
  st.audio(st.session_state.audio_array, format="audio/wav", sample_rate=16000)
161
  st.session_state.update(on_upload=False, on_record=False, on_select=False)
162
 
 
 
 
 
 
 
 
 
 
163
  st.markdown("**Example Instruction:**")
164
  st.write(st.session_state.default_instruction)
165