Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,42 +49,43 @@ def generate_defense_argument(prosecution_argument):
|
|
49 |
arguments = respond(prosecution_argument, system_message, max_tokens=1024, temperature=0.7, top_p=0.95)
|
50 |
return arguments
|
51 |
|
52 |
-
# Custom CSS for a
|
53 |
custom_css = """
|
54 |
body {
|
55 |
-
background-color: #
|
56 |
-
color: #
|
57 |
font-family: Arial, sans-serif;
|
58 |
}
|
59 |
.gradio-container {
|
60 |
max-width: 1000px;
|
61 |
margin: 0 auto;
|
62 |
padding: 20px;
|
63 |
-
background-color: #
|
64 |
border: 1px solid #e0e0e0;
|
65 |
border-radius: 8px;
|
66 |
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
67 |
}
|
68 |
.gr-button {
|
69 |
-
background-color: #
|
70 |
-
border-color: #
|
71 |
-
color: #
|
72 |
margin: 5px;
|
73 |
}
|
74 |
.gr-button:hover {
|
75 |
-
background-color: #
|
76 |
-
border-color: #
|
|
|
77 |
}
|
78 |
.gr-input, .gr-textbox, .gr-slider, .gr-markdown, .gr-chatbox {
|
79 |
border-radius: 4px;
|
80 |
border: 1px solid #ced4da;
|
81 |
-
background-color: #
|
82 |
-
color: #
|
83 |
}
|
84 |
.gr-input:focus, .gr-textbox:focus, .gr-slider:focus {
|
85 |
-
border-color: #
|
86 |
outline: 0;
|
87 |
-
box-shadow: 0 0 0 0.2rem rgba(255,
|
88 |
}
|
89 |
#flagging-button {
|
90 |
display: none;
|
@@ -93,19 +94,19 @@ footer {
|
|
93 |
display: none;
|
94 |
}
|
95 |
.chatbox .chat-container .chat-message {
|
96 |
-
background-color: #
|
97 |
-
color: #
|
98 |
}
|
99 |
.chatbox .chat-container .chat-message-input {
|
100 |
-
background-color: #
|
101 |
-
color: #
|
102 |
}
|
103 |
.gr-markdown {
|
104 |
-
background-color: #
|
105 |
-
color: #
|
106 |
}
|
107 |
.gr-markdown h1, .gr-markdown h2, .gr-markdown h3, .gr-markdown h4, .gr-markdown h5, .gr-markdown h6, .gr-markdown p, .gr-markdown ul, .gr-markdown ol, .gr-markdown li {
|
108 |
-
color: #
|
109 |
}
|
110 |
.score-box {
|
111 |
width: 60px;
|
|
|
49 |
arguments = respond(prosecution_argument, system_message, max_tokens=1024, temperature=0.7, top_p=0.95)
|
50 |
return arguments
|
51 |
|
52 |
+
# Custom CSS for a dark theme with red accents
|
53 |
custom_css = """
|
54 |
body {
|
55 |
+
background-color: #000000;
|
56 |
+
color: #ffffff;
|
57 |
font-family: Arial, sans-serif;
|
58 |
}
|
59 |
.gradio-container {
|
60 |
max-width: 1000px;
|
61 |
margin: 0 auto;
|
62 |
padding: 20px;
|
63 |
+
background-color: #000000;
|
64 |
border: 1px solid #e0e0e0;
|
65 |
border-radius: 8px;
|
66 |
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
67 |
}
|
68 |
.gr-button {
|
69 |
+
background-color: #000000 !important;
|
70 |
+
border-color: #ff0000 !important;
|
71 |
+
color: #ff0000 !important;
|
72 |
margin: 5px;
|
73 |
}
|
74 |
.gr-button:hover {
|
75 |
+
background-color: #ff0000 !important;
|
76 |
+
border-color: #ff0000 !important;
|
77 |
+
color: #000000 !important;
|
78 |
}
|
79 |
.gr-input, .gr-textbox, .gr-slider, .gr-markdown, .gr-chatbox {
|
80 |
border-radius: 4px;
|
81 |
border: 1px solid #ced4da;
|
82 |
+
background-color: #000000 !important;
|
83 |
+
color: #ffffff !important;
|
84 |
}
|
85 |
.gr-input:focus, .gr-textbox:focus, .gr-slider:focus {
|
86 |
+
border-color: #ff0000;
|
87 |
outline: 0;
|
88 |
+
box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.5);
|
89 |
}
|
90 |
#flagging-button {
|
91 |
display: none;
|
|
|
94 |
display: none;
|
95 |
}
|
96 |
.chatbox .chat-container .chat-message {
|
97 |
+
background-color: #000000 !important;
|
98 |
+
color: #ffffff !important;
|
99 |
}
|
100 |
.chatbox .chat-container .chat-message-input {
|
101 |
+
background-color: #000000 !important;
|
102 |
+
color: #ffffff !important;
|
103 |
}
|
104 |
.gr-markdown {
|
105 |
+
background-color: #000000 !important;
|
106 |
+
color: #ffffff !important;
|
107 |
}
|
108 |
.gr-markdown h1, .gr-markdown h2, .gr-markdown h3, .gr-markdown h4, .gr-markdown h5, .gr-markdown h6, .gr-markdown p, .gr-markdown ul, .gr-markdown ol, .gr-markdown li {
|
109 |
+
color: #ffffff !important;
|
110 |
}
|
111 |
.score-box {
|
112 |
width: 60px;
|