Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -61,6 +61,22 @@ def process_text(text):
|
|
61 |
text = re.sub(r'\[.*?\]', '', text, flags=re.DOTALL)
|
62 |
|
63 |
return text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
# Gradio Function
|
66 |
@spaces.GPU
|
@@ -126,7 +142,7 @@ chat_interface = gr.ChatInterface(
|
|
126 |
)
|
127 |
|
128 |
# Gradio Web Interface
|
129 |
-
with gr.Blocks(theme='shivi/calm_seafoam',fill_height=True) as demo:
|
130 |
# gr.Markdown(DESCRIPTION)
|
131 |
chat_interface.render()
|
132 |
gr.Markdown(LICENSE)
|
|
|
61 |
text = re.sub(r'\[.*?\]', '', text, flags=re.DOTALL)
|
62 |
|
63 |
return text
|
64 |
+
custom_css = """
|
65 |
+
body, input, button, textarea, label {
|
66 |
+
font-family: Arial, sans-serif;
|
67 |
+
font-size: 24px;
|
68 |
+
}
|
69 |
+
.gr-chat-interface .gr-chat-message-container {
|
70 |
+
font-size: 14px;
|
71 |
+
}
|
72 |
+
.gr-button {
|
73 |
+
font-size: 14px;
|
74 |
+
padding: 12px 24px;
|
75 |
+
}
|
76 |
+
.gr-input {
|
77 |
+
font-size: 14px;
|
78 |
+
}
|
79 |
+
"""
|
80 |
|
81 |
# Gradio Function
|
82 |
@spaces.GPU
|
|
|
142 |
)
|
143 |
|
144 |
# Gradio Web Interface
|
145 |
+
with gr.Blocks(css=custom_css,theme='shivi/calm_seafoam',fill_height=True) as demo:
|
146 |
# gr.Markdown(DESCRIPTION)
|
147 |
chat_interface.render()
|
148 |
gr.Markdown(LICENSE)
|