Commit
·
072dcc7
1
Parent(s):
22266e2
Update app
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True, us
|
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
-
@spaces.
|
| 118 |
def chat(message, history):
|
| 119 |
print(history)
|
| 120 |
print(message)
|
|
@@ -150,17 +150,6 @@ def chat(message, history):
|
|
| 150 |
return response
|
| 151 |
|
| 152 |
CSS ="""
|
| 153 |
-
# @media only screen and (max-width: 600px){
|
| 154 |
-
# #component-3 {
|
| 155 |
-
# height: 90dvh !important;
|
| 156 |
-
# transform-origin: top; /* Đảm bảo rằng phần tử mở rộng từ trên xuống */
|
| 157 |
-
# border-style: solid;
|
| 158 |
-
# overflow: hidden;
|
| 159 |
-
# flex-grow: 1;
|
| 160 |
-
# min-width: min(160px, 100%);
|
| 161 |
-
# border-width: var(--block-border-width);
|
| 162 |
-
# }
|
| 163 |
-
# }
|
| 164 |
#component-3 {
|
| 165 |
height: 50dvh !important;
|
| 166 |
transform-origin: top; /* Đảm bảo rằng phần tử mở rộng từ trên xuống */
|
|
|
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
+
# @spaces.GPU
|
| 118 |
def chat(message, history):
|
| 119 |
print(history)
|
| 120 |
print(message)
|
|
|
|
| 150 |
return response
|
| 151 |
|
| 152 |
CSS ="""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
#component-3 {
|
| 154 |
height: 50dvh !important;
|
| 155 |
transform-origin: top; /* Đảm bảo rằng phần tử mở rộng từ trên xuống */
|