Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ st.markdown('<h1 class="display-4 text-center">My Streamlit Application</h1><p c
|
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
-
left,
|
| 57 |
|
| 58 |
|
| 59 |
with left:
|
|
@@ -100,7 +100,7 @@ with left:
|
|
| 100 |
# Display the current calculation input/output
|
| 101 |
st.text_input("Calculation", st.session_state.calc_input, key="display", disabled=True)
|
| 102 |
|
| 103 |
-
with
|
| 104 |
|
| 105 |
st.markdown('''<h3><i class="fa fa-image"></i> Gen Image</h3>''', unsafe_allow_html=True)
|
| 106 |
|
|
@@ -144,35 +144,35 @@ with lr:
|
|
| 144 |
st.error(f"Error: {response.status_code}, {response.text}")
|
| 145 |
|
| 146 |
|
| 147 |
-
with rl:
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
with right:
|
| 177 |
|
| 178 |
st.markdown('''<h3><i class="fa fa-pencil"></i> Chat with Mistral</h3>''', unsafe_allow_html=True)
|
|
|
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
+
left, ml, right = st.columns([3,3,3])
|
| 57 |
|
| 58 |
|
| 59 |
with left:
|
|
|
|
| 100 |
# Display the current calculation input/output
|
| 101 |
st.text_input("Calculation", st.session_state.calc_input, key="display", disabled=True)
|
| 102 |
|
| 103 |
+
with ml:
|
| 104 |
|
| 105 |
st.markdown('''<h3><i class="fa fa-image"></i> Gen Image</h3>''', unsafe_allow_html=True)
|
| 106 |
|
|
|
|
| 144 |
st.error(f"Error: {response.status_code}, {response.text}")
|
| 145 |
|
| 146 |
|
| 147 |
+
# with rl:
|
| 148 |
+
# # End of Box 2 and second Carousel Item
|
| 149 |
+
# st.markdown('''<h3><i class="fa fa-pencil"></i> Transcribe </h3>''', unsafe_allow_html=True)
|
| 150 |
+
|
| 151 |
+
# # Box 3: Form 2
|
| 152 |
+
# # Audio recording using mic_recorder
|
| 153 |
+
# audio = mic_recorder(
|
| 154 |
+
# start_prompt="Start recording",
|
| 155 |
+
# stop_prompt="Stop recording",
|
| 156 |
+
# just_once=False,
|
| 157 |
+
# use_container_width=False,
|
| 158 |
+
# callback=None,
|
| 159 |
+
# key="mic_recorder"
|
| 160 |
+
# )
|
| 161 |
+
|
| 162 |
+
# #uploaded_file = st.file_uploader("Or upload an audio file", type=["mp3", "wav", "flac", "aac"])
|
| 163 |
+
# if st.button("Transcribe"):
|
| 164 |
+
# if audio and "bytes" in audio:
|
| 165 |
+
# st.success("Recording detected. Transcribing your recording...")
|
| 166 |
+
# with open("temp_recording.wav", "wb") as f:
|
| 167 |
+
# f.write(audio["bytes"])
|
| 168 |
+
# with st.spinner("Transcribing..."):
|
| 169 |
+
# #transcription = transcribe("temp_recording.wav")
|
| 170 |
+
# #need to send the data here
|
| 171 |
+
# transcription = "Under Process"
|
| 172 |
+
# print("")
|
| 173 |
+
# st.text_area("Transcription", transcription, height=200)
|
| 174 |
+
# else:
|
| 175 |
+
# st.error("Please record audio or upload a file to transcribe.")
|
| 176 |
with right:
|
| 177 |
|
| 178 |
st.markdown('''<h3><i class="fa fa-pencil"></i> Chat with Mistral</h3>''', unsafe_allow_html=True)
|