Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import json
|
|
4 |
import copy
|
5 |
import gradio as gr
|
6 |
|
7 |
-
from
|
8 |
-
from
|
9 |
|
10 |
from styles import MODEL_SELECTION_CSS
|
11 |
from js import GET_LOCAL_STORAGE, UPDATE_LEFT_BTNS_STATE, UPDATE_PLACEHOLDERS
|
@@ -295,7 +295,7 @@ with gr.Blocks(css=MODEL_SELECTION_CSS, theme='gradio/soft') as demo:
|
|
295 |
max_lines=50,
|
296 |
)
|
297 |
|
298 |
-
chatbot = gr.Chatbot(elem_id='chatbot', label="
|
299 |
instruction_txtbox = gr.Textbox(placeholder="Ask anything", label="", elem_id="prompt-txt")
|
300 |
|
301 |
with gr.Accordion("Example Templates", open=False):
|
|
|
4 |
import copy
|
5 |
import gradio as gr
|
6 |
|
7 |
+
from palmapi import GradioPaLMChatPPManager
|
8 |
+
from palmapi import gen_text
|
9 |
|
10 |
from styles import MODEL_SELECTION_CSS
|
11 |
from js import GET_LOCAL_STORAGE, UPDATE_LEFT_BTNS_STATE, UPDATE_PLACEHOLDERS
|
|
|
295 |
max_lines=50,
|
296 |
)
|
297 |
|
298 |
+
chatbot = gr.Chatbot(elem_id='chatbot', label="PaLM API")
|
299 |
instruction_txtbox = gr.Textbox(placeholder="Ask anything", label="", elem_id="prompt-txt")
|
300 |
|
301 |
with gr.Accordion("Example Templates", open=False):
|