Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
# Configure the Gemini API
|
6 |
genai.configure(api_key=os.environ["GEMINI_API_KEY"])
|
7 |
|
8 |
-
|
9 |
|
10 |
|
11 |
system_instruction = """
|
@@ -21,7 +21,7 @@ model = genai.GenerativeModel(
|
|
21 |
system_instruction=system_instruction
|
22 |
)
|
23 |
|
24 |
-
|
25 |
|
26 |
|
27 |
# Define the model with a placeholder for system instruction
|
|
|
5 |
# Configure the Gemini API
|
6 |
genai.configure(api_key=os.environ["GEMINI_API_KEY"])
|
7 |
|
8 |
+
|
9 |
|
10 |
|
11 |
system_instruction = """
|
|
|
21 |
system_instruction=system_instruction
|
22 |
)
|
23 |
|
24 |
+
chat_session = model.start_chat(history=[])
|
25 |
|
26 |
|
27 |
# Define the model with a placeholder for system instruction
|