Update app.py
Browse files
app.py
CHANGED
@@ -112,12 +112,17 @@ chat_interface = gr.ChatInterface(
|
|
112 |
],
|
113 |
)
|
114 |
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
121 |
)
|
122 |
chat_interface.render()
|
123 |
|
|
|
112 |
],
|
113 |
)
|
114 |
|
115 |
+
customCSS = """
|
116 |
+
#component-7 { # this is the default element ID of the chat component
|
117 |
+
height: 800px; # adjust the height as needed
|
118 |
+
flex-grow: 1;
|
119 |
+
}
|
120 |
+
"""
|
121 |
+
|
122 |
+
with gr.Blocks(css=customCSS) as demo:
|
123 |
+
gr.ChatInterface(
|
124 |
+
generate,
|
125 |
+
additional_inputs=additional_inputs,
|
126 |
)
|
127 |
chat_interface.render()
|
128 |
|