Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -179,8 +179,8 @@ modelflash = genai.GenerativeModel(
|
|
| 179 |
)
|
| 180 |
|
| 181 |
def geminiproinferenceinstance(text):
|
| 182 |
-
global
|
| 183 |
-
chat_session =
|
| 184 |
history=[
|
| 185 |
]
|
| 186 |
)
|
|
@@ -192,7 +192,7 @@ def geminiproinferenceinstance(text):
|
|
| 192 |
|
| 193 |
def geminiflashinferenceinstance(text):
|
| 194 |
global modelflash
|
| 195 |
-
chat_session =
|
| 196 |
history=[
|
| 197 |
]
|
| 198 |
)
|
|
|
|
| 179 |
)
|
| 180 |
|
| 181 |
def geminiproinferenceinstance(text):
|
| 182 |
+
global modelpro
|
| 183 |
+
chat_session = modelpro.start_chat(
|
| 184 |
history=[
|
| 185 |
]
|
| 186 |
)
|
|
|
|
| 192 |
|
| 193 |
def geminiflashinferenceinstance(text):
|
| 194 |
global modelflash
|
| 195 |
+
chat_session = modelflash.start_chat(
|
| 196 |
history=[
|
| 197 |
]
|
| 198 |
)
|