d3dname commited on
Commit
dfc2cd8
·
verified ·
1 Parent(s): 7760c89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -97,8 +97,8 @@ st.markdown('<h1 class="display-4 text-center">My Streamlit Application</h1><p c
97
 
98
 
99
 
100
- left, right = st.columns(2)
101
- buff, col, buff2 = st.columns([1,3,1])
102
 
103
  with left:
104
  # Carousel Structure
@@ -144,8 +144,7 @@ with left:
144
  # Display the current calculation input/output
145
  st.text_input("Calculation", st.session_state.calc_input, key="display", disabled=True)
146
 
147
-
148
-
149
  # End of Box 1 and first Carousel Item
150
  st.markdown('''<h3><i class="fa fa-pencil"></i> Form 1</h3>''', unsafe_allow_html=True)
151
 
@@ -163,9 +162,9 @@ with left:
163
 
164
 
165
 
166
- with right:
167
  # End of Box 2 and second Carousel Item
168
- st.markdown('''<h3><i class="fa fa-pencil"></i> Form 2</h3>''', unsafe_allow_html=True)
169
 
170
  # Box 3: Form 2
171
  # Audio recording using mic_recorder
@@ -178,7 +177,7 @@ with right:
178
  key="mic_recorder"
179
  )
180
 
181
- uploaded_file = st.file_uploader("Or upload an audio file", type=["mp3", "wav", "flac", "aac"])
182
  if st.button("Transcribe"):
183
  if audio and "bytes" in audio:
184
  st.success("Recording detected. Transcribing your recording...")
@@ -196,7 +195,7 @@ with right:
196
 
197
  # End of Box 3 and third Carousel Item
198
  st.markdown('''<h3><i class="fa fa-pencil"></i> Form 3</h3>''', unsafe_allow_html=True)
199
-
200
  # Box 4: Form 3
201
  prompt3 = st.text_input("Enter Prompt", key="prompt3")
202
  image_url3 = st.text_input("Enter Image URL", key="image_url3")
@@ -209,7 +208,7 @@ with right:
209
  st.write("Failed to get a response")
210
 
211
  # End of Box 4 and fourth Carousel Item
212
- st.markdown(''' ''', unsafe_allow_html=True)
213
  hide_default_format = """
214
  <style>
215
  #MainMenu {visibility: hidden; }
 
97
 
98
 
99
 
100
+ left, lr, rl, right = st.columns([2,2,2,2])
101
+
102
 
103
  with left:
104
  # Carousel Structure
 
144
  # Display the current calculation input/output
145
  st.text_input("Calculation", st.session_state.calc_input, key="display", disabled=True)
146
 
147
+ with lr:
 
148
  # End of Box 1 and first Carousel Item
149
  st.markdown('''<h3><i class="fa fa-pencil"></i> Form 1</h3>''', unsafe_allow_html=True)
150
 
 
162
 
163
 
164
 
165
+ with rl:
166
  # End of Box 2 and second Carousel Item
167
+ st.markdown('''<h3><i class="fa fa-pencil"></i> Transcribe </h3>''', unsafe_allow_html=True)
168
 
169
  # Box 3: Form 2
170
  # Audio recording using mic_recorder
 
177
  key="mic_recorder"
178
  )
179
 
180
+ #uploaded_file = st.file_uploader("Or upload an audio file", type=["mp3", "wav", "flac", "aac"])
181
  if st.button("Transcribe"):
182
  if audio and "bytes" in audio:
183
  st.success("Recording detected. Transcribing your recording...")
 
195
 
196
  # End of Box 3 and third Carousel Item
197
  st.markdown('''<h3><i class="fa fa-pencil"></i> Form 3</h3>''', unsafe_allow_html=True)
198
+ with right:
199
  # Box 4: Form 3
200
  prompt3 = st.text_input("Enter Prompt", key="prompt3")
201
  image_url3 = st.text_input("Enter Image URL", key="image_url3")
 
208
  st.write("Failed to get a response")
209
 
210
  # End of Box 4 and fourth Carousel Item
211
+
212
  hide_default_format = """
213
  <style>
214
  #MainMenu {visibility: hidden; }