Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -80,22 +80,14 @@ additional_inputs=[
|
|
80 |
)
|
81 |
]
|
82 |
|
83 |
-
|
84 |
-
#input-box, #output-box {
|
85 |
-
height: 500px; /* Adjust the height to 500 pixels */
|
86 |
-
overflow: auto; /* Enable scrolling if content exceeds box height */
|
87 |
-
border: 1px solid #ccc; /* Add border for better visibility */
|
88 |
-
padding: 10px; /* Add padding for better spacing */
|
89 |
-
}
|
90 |
-
"""
|
91 |
-
|
92 |
-
with gr.Blocks(css=css) as demo:
|
93 |
gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
|
|
100 |
)
|
101 |
demo.queue().launch(debug=True)
|
|
|
80 |
)
|
81 |
]
|
82 |
|
83 |
+
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
|
85 |
+
gr.Box(
|
86 |
+
gr.ChatInterface(
|
87 |
+
generate,
|
88 |
+
additional_inputs=additional_inputs,
|
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)
|