Spaces:
Running
Running
Mr-Vicky-01
commited on
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 Pachaiappan [
|
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}
|
|
|
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 Pachaiappan [linkdin](https://www.linkedin.com/in/pachaiappan) 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}
|