Satyam-Singh commited on
Commit
6ed8cb1
·
verified ·
1 Parent(s): 1c1be28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -111,7 +111,7 @@ convo = model.start_chat(history=[
111
  ])
112
 
113
 
114
- def gemini_chat(prompt, history):
115
  response = chat.send_message(message)
116
  return response.text
117
 
@@ -119,7 +119,13 @@ chat = model.start_chat()
119
 
120
  gr.ChatInterface(
121
  fn=gemini_chat,
122
- chatbot=gr.Chatbot(show_label=False, avatar_images=(None, 'palm-logo.png'), show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
 
 
 
 
 
 
123
  title="PaLM-2",
124
  description="This is unofficial demo of ```PaLM-2``` based on ```Google API```. ```History/context``` memory does not work in this demo.",
125
  concurrency_limit=20,
 
111
  ])
112
 
113
 
114
+ def gemini_chat(message, history):
115
  response = chat.send_message(message)
116
  return response.text
117
 
 
119
 
120
  gr.ChatInterface(
121
  fn=gemini_chat,
122
+ chatbot=gr.Chatbot(show_label=False,
123
+ avatar_images=(None, 'palm-logo.png'),
124
+ show_share_button=False,
125
+ show_copy_button=True,
126
+ likeable=True,
127
+ layout="panel"
128
+ ),
129
  title="PaLM-2",
130
  description="This is unofficial demo of ```PaLM-2``` based on ```Google API```. ```History/context``` memory does not work in this demo.",
131
  concurrency_limit=20,