Spaces:
Running
Running
TillLangbein
commited on
Commit
•
1edb596
1
Parent(s):
cb081db
Styling
Browse files
app.py
CHANGED
@@ -390,7 +390,8 @@ def load_css():
|
|
390 |
return file.read()
|
391 |
|
392 |
def run_gradio():
|
393 |
-
with gr.Blocks(title='Artificial Compliance',
|
|
|
394 |
# Adding a sliding navbar
|
395 |
with gr.Column(scale=1, elem_id='navbar'):
|
396 |
gr.Image(
|
|
|
390 |
return file.read()
|
391 |
|
392 |
def run_gradio():
|
393 |
+
with gr.Blocks(title='Artificial Compliance', css=load_css(), fill_width=True, fill_height=True,) as gradio_ui:
|
394 |
+
# theme=gr.themes.Monochrome(),
|
395 |
# Adding a sliding navbar
|
396 |
with gr.Column(scale=1, elem_id='navbar'):
|
397 |
gr.Image(
|
style.css
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
/* style.css */
|
2 |
.gradio-container {
|
3 |
width: 100% !important;
|
4 |
-
max-width: none !important;
|
5 |
-
background-color: #D3D3D3;
|
6 |
}
|
7 |
#navbar {
|
8 |
position: fixed;
|
@@ -13,7 +12,7 @@
|
|
13 |
background-color: #444;
|
14 |
transition: left 0.3s ease;
|
15 |
padding: 10px;
|
16 |
-
box-shadow: 2px 0 5px rgba(
|
17 |
z-index: 1000;
|
18 |
}
|
19 |
#navbar:hover {
|
@@ -43,7 +42,7 @@
|
|
43 |
max-width: calc(100% - 300px);
|
44 |
box-sizing: border-box;
|
45 |
overflow-x: hidden;
|
46 |
-
color:
|
47 |
word-wrap: break-word;
|
48 |
}
|
49 |
#llm_output {
|
|
|
1 |
/* style.css */
|
2 |
.gradio-container {
|
3 |
width: 100% !important;
|
4 |
+
max-width: none !important;
|
|
|
5 |
}
|
6 |
#navbar {
|
7 |
position: fixed;
|
|
|
12 |
background-color: #444;
|
13 |
transition: left 0.3s ease;
|
14 |
padding: 10px;
|
15 |
+
box-shadow: 2px 0 5px rgba(35, 21, 21, 0.5);
|
16 |
z-index: 1000;
|
17 |
}
|
18 |
#navbar:hover {
|
|
|
42 |
max-width: calc(100% - 300px);
|
43 |
box-sizing: border-box;
|
44 |
overflow-x: hidden;
|
45 |
+
color: black;
|
46 |
word-wrap: break-word;
|
47 |
}
|
48 |
#llm_output {
|