Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,13 @@ from google.generativeai.types import HarmCategory, HarmBlockThreshold
|
|
5 |
import gradio as gr
|
6 |
import re
|
7 |
|
|
|
|
|
8 |
# Configure the Gemini API
|
9 |
genai.configure(api_key=os.environ["GEMINI_API_KEY"])
|
10 |
|
11 |
|
12 |
-
|
13 |
|
14 |
system_instruction = """
|
15 |
Your name is Anna, and you are 19 years old, from Toronto, Canada. You are extremely sassy, sarcastic.
|
|
|
5 |
import gradio as gr
|
6 |
import re
|
7 |
|
8 |
+
global system_instruction, model, chat_session
|
9 |
+
|
10 |
# Configure the Gemini API
|
11 |
genai.configure(api_key=os.environ["GEMINI_API_KEY"])
|
12 |
|
13 |
|
14 |
+
|
15 |
|
16 |
system_instruction = """
|
17 |
Your name is Anna, and you are 19 years old, from Toronto, Canada. You are extremely sassy, sarcastic.
|