Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,16 @@
|
|
| 1 |
-
import streamlit as st
|
| 2 |
-
|
| 3 |
|
|
|
|
|
|
|
| 4 |
|
| 5 |
st.markdown("""
|
| 6 |
<h1 style="text-align:center; color: #FF4500;">Welcome To Gemini CodeReviewer.....</h1>
|
| 7 |
""", unsafe_allow_html=True)
|
| 8 |
-
|
| 9 |
-
|
| 10 |
|
| 11 |
# Configure Gemini API Key
|
| 12 |
-
genai.configure(api_key=
|
| 13 |
|
| 14 |
-
# Streamlit UI
|
| 15 |
-
st.set_page_config(page_title="Gemini Chatbot", layout="centered")
|
| 16 |
st.title("🤖 Chatbot using Gemini API")
|
| 17 |
|
| 18 |
# Function to get Gemini response
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
+
import streamlit as st
|
| 3 |
+
import google.generativeai as genai
|
| 4 |
|
| 5 |
st.markdown("""
|
| 6 |
<h1 style="text-align:center; color: #FF4500;">Welcome To Gemini CodeReviewer.....</h1>
|
| 7 |
""", unsafe_allow_html=True)
|
| 8 |
+
# Move this line to the top before any Streamlit UI commands
|
| 9 |
+
st.set_page_config(page_title="Gemini Chatbot", layout="centered")
|
| 10 |
|
| 11 |
# Configure Gemini API Key
|
| 12 |
+
genai.configure(api_key="AIzaSyBm0GOvYox4OyRG1WFOK7FT5fnNCHfubns")
|
| 13 |
|
|
|
|
|
|
|
| 14 |
st.title("🤖 Chatbot using Gemini API")
|
| 15 |
|
| 16 |
# Function to get Gemini response
|