Spaces:
Runtime error
Runtime error
Commit ·
2066091
1
Parent(s): 2484c6a
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def generate(prompt, history, system):
|
|
| 9 |
sub_arrays_as_strings = [' '.join(sub_array) for sub_array in history]
|
| 10 |
result_string = ' '.join(sub_arrays_as_strings)
|
| 11 |
response = genai.chat(
|
| 12 |
-
context=result_string
|
| 13 |
messages=prompt)
|
| 14 |
|
| 15 |
return response.last
|
|
@@ -20,7 +20,7 @@ additional = [
|
|
| 20 |
|
| 21 |
gr.ChatInterface(
|
| 22 |
fn=generate,
|
| 23 |
-
chatbot=gr.Chatbot(show_label=False, avatar_images=(None, '
|
| 24 |
additional_inputs=additional,
|
| 25 |
title="PaLM-2",
|
| 26 |
concurrency_limit=20,
|
|
|
|
| 9 |
sub_arrays_as_strings = [' '.join(sub_array) for sub_array in history]
|
| 10 |
result_string = ' '.join(sub_arrays_as_strings)
|
| 11 |
response = genai.chat(
|
| 12 |
+
context=result_string,
|
| 13 |
messages=prompt)
|
| 14 |
|
| 15 |
return response.last
|
|
|
|
| 20 |
|
| 21 |
gr.ChatInterface(
|
| 22 |
fn=generate,
|
| 23 |
+
chatbot=gr.Chatbot(show_label=False, avatar_images=(None, 'palm-logo.png'), show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
| 24 |
additional_inputs=additional,
|
| 25 |
title="PaLM-2",
|
| 26 |
concurrency_limit=20,
|