Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,8 @@ if openai_api_key:
|
|
99 |
"Chemistry Assistant", # Added option for Chemistry
|
100 |
"Physics Assistant", # Added option for Physics
|
101 |
"Voice Chat",
|
102 |
-
"Image Chat"
|
|
|
103 |
))
|
104 |
|
105 |
# Add Contact information in the sidebar
|
@@ -437,3 +438,19 @@ if openai_api_key:
|
|
437 |
if st.button("Go to Image Chat (Alternative App)"):
|
438 |
st.write("Redirecting to the alternative image chat...") # You can customize this message
|
439 |
st.markdown(f'<a href="https://imagechat.onrender.com/" target="_blank">Go to Image Chat (Alternative App)</a>', unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
"Chemistry Assistant", # Added option for Chemistry
|
100 |
"Physics Assistant", # Added option for Physics
|
101 |
"Voice Chat",
|
102 |
+
"Image Chat",
|
103 |
+
"English To Japanese"
|
104 |
))
|
105 |
|
106 |
# Add Contact information in the sidebar
|
|
|
438 |
if st.button("Go to Image Chat (Alternative App)"):
|
439 |
st.write("Redirecting to the alternative image chat...") # You can customize this message
|
440 |
st.markdown(f'<a href="https://imagechat.onrender.com/" target="_blank">Go to Image Chat (Alternative App)</a>', unsafe_allow_html=True)
|
441 |
+
|
442 |
+
# **New Section: Voice Chat**
|
443 |
+
elif mode == "English To Japanese":
|
444 |
+
st.header("English To Japanese")
|
445 |
+
|
446 |
+
# Display a description or instructions
|
447 |
+
st.write("Click the button below to go to the English To Japanese Translator.")
|
448 |
+
|
449 |
+
# Display image/logo in the "Physics Assistant" section (optional)
|
450 |
+
gif = "200w.gif" # Ensure the file is in the correct directory
|
451 |
+
st.image(gif, use_column_width=50) # Adjust the size as per preference
|
452 |
+
|
453 |
+
# Button to navigate to the external voice chat link
|
454 |
+
if st.button("Go to English To Japanese Translator"):
|
455 |
+
st.write("Redirecting to the English To Japanese Translator...") # You can customize this message
|
456 |
+
st.markdown(f'<a href="https://shukdevdatta123-voicechat.hf.space" target="_blank">Go to Voice Chat</a>', unsafe_allow_html=True)
|