Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,85 +10,6 @@ CSS = """
|
|
| 10 |
background-color: #0F1117;
|
| 11 |
color: #FFFFFF;
|
| 12 |
}
|
| 13 |
-
|
| 14 |
-
.gradio-container {
|
| 15 |
-
max-width: 100% !important;
|
| 16 |
-
padding: 0 !important;
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
h1 {
|
| 20 |
-
color: #00FF00;
|
| 21 |
-
text-align: center;
|
| 22 |
-
font-size: 2.5em;
|
| 23 |
-
margin-bottom: 20px;
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
.gr-block, .gr-box {
|
| 27 |
-
border-color: #2F3336 !important;
|
| 28 |
-
}
|
| 29 |
-
|
| 30 |
-
.gr-chatbot {
|
| 31 |
-
height: 450px;
|
| 32 |
-
overflow-y: auto;
|
| 33 |
-
border: 1px solid #2F3336;
|
| 34 |
-
border-radius: 8px;
|
| 35 |
-
background-color: #0F1117;
|
| 36 |
-
}
|
| 37 |
-
|
| 38 |
-
.gr-chat-message {
|
| 39 |
-
background-color: #1A1B26;
|
| 40 |
-
border: 1px solid #2F3336;
|
| 41 |
-
border-radius: 8px;
|
| 42 |
-
padding: 10px;
|
| 43 |
-
margin-bottom: 10px;
|
| 44 |
-
}
|
| 45 |
-
|
| 46 |
-
.gr-chat-message.user {
|
| 47 |
-
background-color: #2F3336;
|
| 48 |
-
}
|
| 49 |
-
|
| 50 |
-
.gr-button {
|
| 51 |
-
background-color: #2F3336 !important;
|
| 52 |
-
color: #FFFFFF !important;
|
| 53 |
-
border: 1px solid #4F5356 !important;
|
| 54 |
-
}
|
| 55 |
-
|
| 56 |
-
.gr-button:hover {
|
| 57 |
-
background-color: #3F4346 !important;
|
| 58 |
-
}
|
| 59 |
-
|
| 60 |
-
input[type="text"], textarea {
|
| 61 |
-
background-color: #1A1B26 !important;
|
| 62 |
-
color: #FFFFFF !important;
|
| 63 |
-
border: 1px solid #2F3336 !important;
|
| 64 |
-
}
|
| 65 |
-
|
| 66 |
-
.gr-form {
|
| 67 |
-
background-color: #0F1117 !important;
|
| 68 |
-
border: 1px solid #2F3336;
|
| 69 |
-
border-radius: 8px;
|
| 70 |
-
}
|
| 71 |
-
|
| 72 |
-
.gr-accordion {
|
| 73 |
-
border: 1px solid #2F3336 !important;
|
| 74 |
-
}
|
| 75 |
-
|
| 76 |
-
.gr-accordion-header {
|
| 77 |
-
background-color: #1A1B26 !important;
|
| 78 |
-
}
|
| 79 |
-
|
| 80 |
-
.gr-accordion-body {
|
| 81 |
-
background-color: #0F1117 !important;
|
| 82 |
-
}
|
| 83 |
-
|
| 84 |
-
.gr-examples {
|
| 85 |
-
border-top: 1px solid #2F3336 !important;
|
| 86 |
-
padding-top: 10px !important;
|
| 87 |
-
}
|
| 88 |
-
|
| 89 |
-
.gr-examples-text {
|
| 90 |
-
color: #AAAAAA !important;
|
| 91 |
-
}
|
| 92 |
"""
|
| 93 |
|
| 94 |
def format_prompt(message, history):
|
|
|
|
| 10 |
background-color: #0F1117;
|
| 11 |
color: #FFFFFF;
|
| 12 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
"""
|
| 14 |
|
| 15 |
def format_prompt(message, history):
|