Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,6 +142,7 @@ with gr.Blocks() as demo:
|
|
| 142 |
)
|
| 143 |
chatbot = gr.ChatInterface(
|
| 144 |
fn=respond,
|
|
|
|
| 145 |
additional_inputs=[
|
| 146 |
model_dropdown,
|
| 147 |
prompt_strategy_dropdown,
|
|
@@ -154,7 +155,7 @@ with gr.Blocks() as demo:
|
|
| 154 |
|
| 155 |
# Parameters and Prompt Details section below the chat
|
| 156 |
with gr.Row(equal_height=True):
|
| 157 |
-
with gr.Column(scale=1, min_width=300
|
| 158 |
with gr.Accordion("Current Prompt Details", open=False):
|
| 159 |
system_prompt_display = gr.TextArea(
|
| 160 |
label="System Prompt",
|
|
|
|
| 142 |
)
|
| 143 |
chatbot = gr.ChatInterface(
|
| 144 |
fn=respond,
|
| 145 |
+
type="messages",
|
| 146 |
additional_inputs=[
|
| 147 |
model_dropdown,
|
| 148 |
prompt_strategy_dropdown,
|
|
|
|
| 155 |
|
| 156 |
# Parameters and Prompt Details section below the chat
|
| 157 |
with gr.Row(equal_height=True):
|
| 158 |
+
with gr.Column(scale=1, min_width=300):
|
| 159 |
with gr.Accordion("Current Prompt Details", open=False):
|
| 160 |
system_prompt_display = gr.TextArea(
|
| 161 |
label="System Prompt",
|