Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ convo = model.start_chat(history=[
|
|
111 |
])
|
112 |
|
113 |
|
114 |
-
def gemini_chat(
|
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,
|
|
|
|
|
|
|
|
|
|
|
|
|
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,
|