Mpavan45 commited on
Commit
5f90ea2
·
verified ·
1 Parent(s): 6aedc61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
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
- import streamlit as st
9
- import google.generativeai as genai
10
 
11
  # Configure Gemini API Key
12
- genai.configure(api_key='AIzaSyBm0GOvYox4OyRG1WFOK7FT5fnNCHfubns')
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