Update app.py
Browse files
app.py
CHANGED
@@ -410,3 +410,24 @@ if openai_api_key:
|
|
410 |
if st.button("Go to Voice Chat"):
|
411 |
st.write("Redirecting to the voice chat...") # You can customize this message
|
412 |
st.markdown(f'<a href="https://shukdevdatta123-voicechat.hf.space" target="_blank">Go to Voice Chat</a>', unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
if st.button("Go to Voice Chat"):
|
411 |
st.write("Redirecting to the voice chat...") # You can customize this message
|
412 |
st.markdown(f'<a href="https://shukdevdatta123-voicechat.hf.space" target="_blank">Go to Voice Chat</a>', unsafe_allow_html=True)
|
413 |
+
|
414 |
+
# **New Section: Image Chat**
|
415 |
+
elif mode == "Image Chat":
|
416 |
+
|
417 |
+
# Display image/logo in the "Physics Assistant" section (optional)
|
418 |
+
imgc = Image.open("i.jpg") # Ensure the file is in the correct directory
|
419 |
+
st.image(imgc, width=150) # Adjust the size as per preference
|
420 |
+
|
421 |
+
st.header("Voice Chat")
|
422 |
+
|
423 |
+
# Display a description or instructions
|
424 |
+
st.write("Click the button below to go to the Voice Chat.")
|
425 |
+
|
426 |
+
# Display image/logo in the "Physics Assistant" section (optional)
|
427 |
+
gif = "200w.gif" # Ensure the file is in the correct directory
|
428 |
+
st.image(gif, use_column_width=100) # Adjust the size as per preference
|
429 |
+
|
430 |
+
# Button to navigate to the external voice chat link
|
431 |
+
if st.button("Go to Image Chat"):
|
432 |
+
st.write("Redirecting to the image chat...") # You can customize this message
|
433 |
+
st.markdown(f'<a href="https://imagechat2278.streamlit.app/" target="_blank">Go to Image Chat</a>', unsafe_allow_html=True)
|