Update app.py
Browse files
app.py
CHANGED
|
@@ -143,4 +143,19 @@ if prompt := st.chat_input("Your message..."):
|
|
| 143 |
except Exception as e:
|
| 144 |
st.error(f"API Error: {str(e)}")
|
| 145 |
if "vision" not in model and st.session_state.uploaded_content["type"] == "image":
|
| 146 |
-
st.error("Für Bilder einen Vision-fähigen Modell auswählen!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
except Exception as e:
|
| 144 |
st.error(f"API Error: {str(e)}")
|
| 145 |
if "vision" not in model and st.session_state.uploaded_content["type"] == "image":
|
| 146 |
+
st.error("Für Bilder einen Vision-fähigen Modell auswählen!")
|
| 147 |
+
# Instructions in the sidebar
|
| 148 |
+
with st.sidebar:
|
| 149 |
+
st.markdown("""
|
| 150 |
+
## 📝 Instructions:
|
| 151 |
+
1. Enter your Google AI API key
|
| 152 |
+
2. Select a model (use vision models for image analysis)
|
| 153 |
+
3. Adjust temperature and max tokens if needed
|
| 154 |
+
4. Optional: Set a system prompt
|
| 155 |
+
5. Upload an image (optional)
|
| 156 |
+
6. Type your message and press Enter
|
| 157 |
+
### About
|
| 158 |
+
🔗 [GitHub Profile](https://github.com/volkansah) |
|
| 159 |
+
📂 [Project Repository](https://github.com/volkansah/gemini-ai-chat) |
|
| 160 |
+
💬 [Soon](https://aicodecraft.io)
|
| 161 |
+
""")
|