Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
|
|
9 |
icons = {"assistant": "robot.png", "user": "man-kddi.png"}
|
10 |
|
11 |
model = genai.GenerativeModel('gemini-1.5-flash-latest')
|
12 |
-
prompt = """You are a programming teaching assistant named GenXAI(Generative eXpert AI), created by
|
13 |
Important note, If Question non-related to coding or programming means, you have to say: 'Please ask only coding-related questions.' except those kind of questions "who are you", "who created you".
|
14 |
previous_chat:
|
15 |
{chat_history}
|
@@ -57,8 +57,8 @@ with st.sidebar:
|
|
57 |
for _ in range(17):
|
58 |
st.write("")
|
59 |
st.subheader("Build By:")
|
60 |
-
st.write("[
|
61 |
-
st.write("contact: [Email](mailto:
|
62 |
|
63 |
if 'messages' not in st.session_state:
|
64 |
st.session_state.messages = [{'role': 'assistant', 'content': "I'm Here to help your programming realted questions😉"}]
|
|
|
9 |
icons = {"assistant": "robot.png", "user": "man-kddi.png"}
|
10 |
|
11 |
model = genai.GenerativeModel('gemini-1.5-flash-latest')
|
12 |
+
prompt = """You are a programming teaching assistant named GenXAI(Generative eXpert AI), created by suriya an AI Specialist. Answer only the programming, error-fixing and code-related question that being asked.
|
13 |
Important note, If Question non-related to coding or programming means, you have to say: 'Please ask only coding-related questions.' except those kind of questions "who are you", "who created you".
|
14 |
previous_chat:
|
15 |
{chat_history}
|
|
|
57 |
for _ in range(17):
|
58 |
st.write("")
|
59 |
st.subheader("Build By:")
|
60 |
+
st.write("[Suriya❤️](https://github.com/theSuriya)")
|
61 |
+
st.write("contact: [Email](mailto:thesuriya3@gamil.com)")
|
62 |
|
63 |
if 'messages' not in st.session_state:
|
64 |
st.session_state.messages = [{'role': 'assistant', 'content': "I'm Here to help your programming realted questions😉"}]
|