Spaces:
Paused
Paused
Updated app.py
Browse files
app.py
CHANGED
|
@@ -176,7 +176,7 @@ def transform_history(history):
|
|
| 176 |
def response(message, history):
|
| 177 |
genai.configure(api_key=GEMINI_API_KEY_NIGHTLY)
|
| 178 |
model_nightly = genai.GenerativeModel(model_nightly_name)
|
| 179 |
-
|
| 180 |
global chat
|
| 181 |
chat = model_nightly.start_chat(history=[])
|
| 182 |
chat.history = transform_history(history)
|
|
@@ -261,13 +261,10 @@ with gr.Blocks(theme = gr.themes.Soft()) as demo:
|
|
| 261 |
)
|
| 262 |
gr.ChatInterface(
|
| 263 |
response,
|
| 264 |
-
title = 'Gemini
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
retry_btn = None,
|
| 269 |
-
undo_btn = None,
|
| 270 |
-
clear_btn = None,
|
| 271 |
fill_height = True
|
| 272 |
)
|
| 273 |
# ============================== Nightly - END ==============================
|
|
|
|
| 176 |
def response(message, history):
|
| 177 |
genai.configure(api_key=GEMINI_API_KEY_NIGHTLY)
|
| 178 |
model_nightly = genai.GenerativeModel(model_nightly_name)
|
| 179 |
+
|
| 180 |
global chat
|
| 181 |
chat = model_nightly.start_chat(history=[])
|
| 182 |
chat.history = transform_history(history)
|
|
|
|
| 261 |
)
|
| 262 |
gr.ChatInterface(
|
| 263 |
response,
|
| 264 |
+
title = 'Chat with Gemini 1.5',
|
| 265 |
+
retry_btn = "Retry",
|
| 266 |
+
undo_btn = "Undo",
|
| 267 |
+
clear_btn = "Clear",
|
|
|
|
|
|
|
|
|
|
| 268 |
fill_height = True
|
| 269 |
)
|
| 270 |
# ============================== Nightly - END ==============================
|