Spaces:
Runtime error
Runtime error
Create static/app.css
#2
by DhumraAI - opened
- app.py +3 -1
- static/app.css +17 -0
app.py
CHANGED
|
@@ -95,7 +95,9 @@ assert css_fn.exists() and css_fn.is_file(), f"CSS file not found: {css_fn}"
|
|
| 95 |
with gr.Blocks(css=str(css_fn), theme=gr.themes.Soft()) as demo:
|
| 96 |
chat_id = gr.State(value=get_chat_id)
|
| 97 |
history_en = gr.State(value=[])
|
| 98 |
-
history_bo = gr.Chatbot(label="Tibetan Chatbot", elem_id="maiChatHistory")
|
|
|
|
|
|
|
| 99 |
|
| 100 |
input_bo = gr.Textbox(
|
| 101 |
show_label=False,
|
|
|
|
| 95 |
with gr.Blocks(css=str(css_fn), theme=gr.themes.Soft()) as demo:
|
| 96 |
chat_id = gr.State(value=get_chat_id)
|
| 97 |
history_en = gr.State(value=[])
|
| 98 |
+
history_bo = gr.Chatbot(label="Tibetan Chatbot", elem_id="maiChatHistory").style(
|
| 99 |
+
height=650
|
| 100 |
+
)
|
| 101 |
|
| 102 |
input_bo = gr.Textbox(
|
| 103 |
show_label=False,
|
static/app.css
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#maiChatHistory .message-wrap div {
|
| 2 |
+
font-size: 30px;
|
| 3 |
+
}
|
| 4 |
+
|
| 5 |
+
#maiChatInput textarea {
|
| 6 |
+
font-size: 30px
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
@media screen and (min-width: 768px) {
|
| 10 |
+
#maiChatInput textarea {
|
| 11 |
+
font-size: 20px
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
#maiChatHistory .message-wrap div {
|
| 15 |
+
font-size: 20px;
|
| 16 |
+
}
|
| 17 |
+
}
|