Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,69 @@ client = InferenceClient(
|
|
| 8 |
CSS = """
|
| 9 |
body {
|
| 10 |
background-color: black;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
-
|
| 13 |
"""
|
| 14 |
|
| 15 |
|
|
|
|
| 16 |
def format_prompt(message, history):
|
| 17 |
prompt = "<s>"
|
| 18 |
for user_prompt, bot_response in history:
|
|
|
|
| 8 |
CSS = """
|
| 9 |
body {
|
| 10 |
background-color: black;
|
| 11 |
+
color: #FFFFFF; /* Default text color - white */
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
.gradio-container {
|
| 15 |
+
background-color: black;
|
| 16 |
+
color: #FFFFFF;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
h1 {
|
| 20 |
+
color: #00FF00; /* Green color for the header text */
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.gr-input {
|
| 24 |
+
color: #00FF00; /* Input text color */
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
.gr-output {
|
| 28 |
+
color: #00FFFF; /* Output text color */
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.gr-button {
|
| 32 |
+
background-color: #333333;
|
| 33 |
+
color: #FFFFFF;
|
| 34 |
+
border: 1px solid #FFFFFF;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.gr-button:hover {
|
| 38 |
+
background-color: #555555;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.gr-slider {
|
| 42 |
+
background-color: #1A1A1A;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.gr-slider .range-slider {
|
| 46 |
+
background-color: #00FF00;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.gr-slider .range-slider__thumb {
|
| 50 |
+
background-color: #00FFFF;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.gr-examples {
|
| 54 |
+
color: #00FF00;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.gr-chat-message {
|
| 58 |
+
background-color: #111111;
|
| 59 |
+
border-radius: 15px;
|
| 60 |
+
padding: 10px;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.gr-chat-message.user {
|
| 64 |
+
color: #00FF00;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.gr-chat-message.bot {
|
| 68 |
+
color: #00FFFF;
|
| 69 |
}
|
|
|
|
| 70 |
"""
|
| 71 |
|
| 72 |
|
| 73 |
+
|
| 74 |
def format_prompt(message, history):
|
| 75 |
prompt = "<s>"
|
| 76 |
for user_prompt, bot_response in history:
|