NotASI commited on
Commit
34bb173
·
1 Parent(s): e33d072

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
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 Chat',
265
- # textbox = gr.Textbox(
266
- # placeholder = "Chat with Gemini"
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 ==============================