Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,8 @@ if openai_api_key:
|
|
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
|
@@ -439,7 +440,7 @@ if openai_api_key:
|
|
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:
|
443 |
elif mode == "English To Japanese":
|
444 |
st.header("English To Japanese")
|
445 |
|
@@ -454,3 +455,20 @@ if openai_api_key:
|
|
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-engtojap-2-0.hf.space" target="_blank">Go to English To Japanese Translator</a>', unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
"Physics Assistant", # Added option for Physics
|
101 |
"Voice Chat",
|
102 |
"Image Chat",
|
103 |
+
"English To Japanese",
|
104 |
+
"Text to Image Generator"
|
105 |
))
|
106 |
|
107 |
# Add Contact information in the sidebar
|
|
|
440 |
st.write("Redirecting to the alternative image chat...") # You can customize this message
|
441 |
st.markdown(f'<a href="https://imagechat.onrender.com/" target="_blank">Go to Image Chat (Alternative App)</a>', unsafe_allow_html=True)
|
442 |
|
443 |
+
# **New Section: English To Japanese**
|
444 |
elif mode == "English To Japanese":
|
445 |
st.header("English To Japanese")
|
446 |
|
|
|
455 |
if st.button("Go to English To Japanese Translator"):
|
456 |
st.write("Redirecting to the English To Japanese Translator...") # You can customize this message
|
457 |
st.markdown(f'<a href="https://shukdevdatta123-engtojap-2-0.hf.space" target="_blank">Go to English To Japanese Translator</a>', unsafe_allow_html=True)
|
458 |
+
|
459 |
+
# **New Section: Text to Image Generator**
|
460 |
+
elif mode == "Text to Image Generator":
|
461 |
+
st.header("Text to Image Generator")
|
462 |
+
|
463 |
+
# Display a description or instructions
|
464 |
+
st.write("Click the button below to go to the Text to Image Generator.")
|
465 |
+
|
466 |
+
|
467 |
+
gif = "200w.gif" # Ensure the file is in the correct directory
|
468 |
+
st.image(gif, use_container_width=150) # Adjust the size as per preference
|
469 |
+
|
470 |
+
# Button to navigate to the external voice chat link
|
471 |
+
if st.button("Go to Text to Image Generator"):
|
472 |
+
st.write("Redirecting to the Text to Image Generator...") # You can customize this message
|
473 |
+
st.markdown(f'<a href="https://shukdevdatta123-image-generator-dall-e3.hf.space" target="_blank">Go to Text to Image Generator</a>', unsafe_allow_html=True)
|
474 |
+
|