Spaces:
Sleeping
Sleeping
Tenzin Gyalpo
commited on
Commit
•
b15a4aa
1
Parent(s):
00fac11
Create static/app.css (#2)
Browse files- Create static/app.css (e4b70636b9050b133ddc570ebf9dd29bbc3831bc)
- Update app.py (f0e9697ff9cbb9337dc2f1d3236d4ddc5cbec5a0)
- 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 |
+
}
|