Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,9 +91,11 @@ css = """
|
|
| 91 |
|
| 92 |
with gr.Blocks(css=css) as demo:
|
| 93 |
gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
|
|
|
|
| 94 |
gr.ChatInterface(
|
| 95 |
-
generate,
|
| 96 |
-
additional_inputs=additional_inputs,
|
| 97 |
-
examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]]
|
|
|
|
| 98 |
)
|
| 99 |
demo.queue().launch(debug=True)
|
|
|
|
| 91 |
|
| 92 |
with gr.Blocks(css=css) as demo:
|
| 93 |
gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
|
| 94 |
+
chatbot = gr.Chatbot(height=500) # Create the chat window with desired height
|
| 95 |
gr.ChatInterface(
|
| 96 |
+
generate, # Conversation generator function
|
| 97 |
+
additional_inputs=additional_inputs, # Additional input components (if any)
|
| 98 |
+
examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]],
|
| 99 |
+
chat=chatbot # Pass the created chatbot instance
|
| 100 |
)
|
| 101 |
demo.queue().launch(debug=True)
|