Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,14 +80,21 @@ additional_inputs=[
|
|
80 |
)
|
81 |
]
|
82 |
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
|
85 |
-
gr.
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]]
|
90 |
-
),
|
91 |
-
style="border: 1px solid #ccc; height: 600px; overflow-y: auto;"
|
92 |
)
|
93 |
demo.queue().launch(debug=True)
|
|
|
80 |
)
|
81 |
]
|
82 |
|
83 |
+
css = """
|
84 |
+
#input-box {
|
85 |
+
height: 300px;
|
86 |
+
}
|
87 |
+
#output-box {
|
88 |
+
height: 600px;
|
89 |
+
overflow-y: auto;
|
90 |
+
}
|
91 |
+
"""
|
92 |
+
|
93 |
+
with gr.Blocks(css=css) as demo:
|
94 |
gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
|
95 |
+
gr.ChatInterface(
|
96 |
+
generate,
|
97 |
+
additional_inputs=additional_inputs,
|
98 |
+
examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]]
|
|
|
|
|
|
|
99 |
)
|
100 |
demo.queue().launch(debug=True)
|