Spaces:
Runtime error
Runtime error
Commit
·
a0de629
1
Parent(s):
04e1f57
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,10 +4,11 @@ import os
|
|
| 4 |
|
| 5 |
genai.configure(api_key=os.getenv("GOOGLE_PALM_KEY"))
|
| 6 |
|
|
|
|
| 7 |
past = ""
|
| 8 |
|
| 9 |
def generate(prompt, history, system):
|
| 10 |
-
|
| 11 |
response = genai.chat(
|
| 12 |
context=past+", "+system,
|
| 13 |
messages=prompt)
|
|
|
|
| 4 |
|
| 5 |
genai.configure(api_key=os.getenv("GOOGLE_PALM_KEY"))
|
| 6 |
|
| 7 |
+
global past
|
| 8 |
past = ""
|
| 9 |
|
| 10 |
def generate(prompt, history, system):
|
| 11 |
+
global past
|
| 12 |
response = genai.chat(
|
| 13 |
context=past+", "+system,
|
| 14 |
messages=prompt)
|