Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,13 +79,22 @@ additional_inputs=[
|
|
| 79 |
info="Penalize repeated tokens",
|
| 80 |
)
|
| 81 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
-
with
|
|
|
|
|
|
|
|
|
|
| 84 |
gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
|
| 85 |
gr.ChatInterface(
|
| 86 |
generate,
|
|
|
|
| 87 |
additional_inputs=additional_inputs,
|
| 88 |
-
examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]]
|
| 89 |
-
chatbot=gr.Chatbot(height=800)
|
| 90 |
)
|
|
|
|
| 91 |
demo.queue().launch(debug=True)
|
|
|
|
| 79 |
info="Penalize repeated tokens",
|
| 80 |
)
|
| 81 |
]
|
| 82 |
+
css = """
|
| 83 |
+
#output-box {
|
| 84 |
+
height: 800px; /* Adjust the height as needed */
|
| 85 |
+
}
|
| 86 |
+
"""
|
| 87 |
|
| 88 |
+
# Create a Chatbot object with the desired height
|
| 89 |
+
chatbot = gr.Chatbot(height=800)
|
| 90 |
+
|
| 91 |
+
with gr.Blocks(css=css) as demo:
|
| 92 |
gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
|
| 93 |
gr.ChatInterface(
|
| 94 |
generate,
|
| 95 |
+
chatbot=chatbot, # Use the created Chatbot object
|
| 96 |
additional_inputs=additional_inputs,
|
| 97 |
+
examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]]
|
|
|
|
| 98 |
)
|
| 99 |
+
|
| 100 |
demo.queue().launch(debug=True)
|