Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,16 +131,15 @@ tools_schema = """function_params = {
|
|
| 131 |
},
|
| 132 |
}"""
|
| 133 |
|
| 134 |
-
chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
|
| 135 |
with gr.Blocks(theme="citrus", css=CSS) as demo:
|
| 136 |
-
gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
|
| 137 |
gr.ChatInterface(
|
| 138 |
-
fn=stream_chat,
|
| 139 |
-
title="Mistral-lab",
|
| 140 |
-
chatbot=chatbot,
|
| 141 |
# type="messages",
|
| 142 |
-
fill_height=True,
|
| 143 |
-
examples=[
|
| 144 |
["Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."],
|
| 145 |
["What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter."],
|
| 146 |
["Tell me a random fun fact about the Roman Empire."],
|
|
@@ -173,6 +172,7 @@ with gr.Blocks(theme="citrus", css=CSS) as demo:
|
|
| 173 |
),
|
| 174 |
],
|
| 175 |
)
|
|
|
|
| 176 |
|
| 177 |
|
| 178 |
if __name__ == "__main__":
|
|
|
|
| 131 |
},
|
| 132 |
}"""
|
| 133 |
|
| 134 |
+
chatbot = gr.Chatbot(height = 600, placeholder = PLACEHOLDER, examples = None)
|
| 135 |
with gr.Blocks(theme="citrus", css=CSS) as demo:
|
|
|
|
| 136 |
gr.ChatInterface(
|
| 137 |
+
fn = stream_chat,
|
| 138 |
+
title = "Mistral-lab",
|
| 139 |
+
chatbot = chatbot,
|
| 140 |
# type="messages",
|
| 141 |
+
fill_height = True,
|
| 142 |
+
examples = [
|
| 143 |
["Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."],
|
| 144 |
["What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter."],
|
| 145 |
["Tell me a random fun fact about the Roman Empire."],
|
|
|
|
| 172 |
),
|
| 173 |
],
|
| 174 |
)
|
| 175 |
+
gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
|
| 176 |
|
| 177 |
|
| 178 |
if __name__ == "__main__":
|