Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import google.generativeai as genai
|
| 3 |
from PIL import Image
|
|
@@ -5,8 +7,8 @@ import io
|
|
| 5 |
|
| 6 |
st.set_page_config(page_title="Gemini AI Chat", layout="wide")
|
| 7 |
|
| 8 |
-
st.title("🤖 Gemini AI Chat Interface")
|
| 9 |
-
st.markdown("Chat with Google's Gemini AI models. Supports both text and image inputs.")
|
| 10 |
|
| 11 |
# Sidebar for settings
|
| 12 |
with st.sidebar:
|
|
@@ -39,7 +41,7 @@ uploaded_file = st.file_uploader("Upload an image (optional)", type=["jpg", "jpe
|
|
| 39 |
uploaded_image = None
|
| 40 |
if uploaded_file is not None:
|
| 41 |
uploaded_image = Image.open(uploaded_file).convert('RGB')
|
| 42 |
-
st.image(uploaded_image, caption="Uploaded Image",
|
| 43 |
|
| 44 |
# Chat input
|
| 45 |
user_input = st.chat_input("Type your message here...")
|
|
|
|
| 1 |
+
# Copyright Volkan Kücükbudak
|
| 2 |
+
# Github: https://github.com/volkansah
|
| 3 |
import streamlit as st
|
| 4 |
import google.generativeai as genai
|
| 5 |
from PIL import Image
|
|
|
|
| 7 |
|
| 8 |
st.set_page_config(page_title="Gemini AI Chat", layout="wide")
|
| 9 |
|
| 10 |
+
st.title("🤖 Gemini AI Chat Interface by Volkan Sah")
|
| 11 |
+
st.markdown("Chat with Google's Gemini AI models. Supports both text and image inputs. Follow me on Github@volkansah for more cool stuff!")
|
| 12 |
|
| 13 |
# Sidebar for settings
|
| 14 |
with st.sidebar:
|
|
|
|
| 41 |
uploaded_image = None
|
| 42 |
if uploaded_file is not None:
|
| 43 |
uploaded_image = Image.open(uploaded_file).convert('RGB')
|
| 44 |
+
st.image(uploaded_image, caption="Uploaded Image", use_container_width=True) # Fixed here
|
| 45 |
|
| 46 |
# Chat input
|
| 47 |
user_input = st.chat_input("Type your message here...")
|