Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ def chat(message, history):
|
|
143 |
for new_text in response:
|
144 |
buffer += new_text
|
145 |
generated_text_without_prompt = buffer[:]
|
146 |
-
time.sleep(0.
|
147 |
yield generated_text_without_prompt
|
148 |
|
149 |
CSS ="""
|
@@ -186,11 +186,11 @@ button.svelte-1lcyrx4[aria-label="user's message: a file of type image/jpeg, "]
|
|
186 |
height: 300px;
|
187 |
}
|
188 |
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
|
195 |
"""
|
196 |
|
|
|
143 |
for new_text in response:
|
144 |
buffer += new_text
|
145 |
generated_text_without_prompt = buffer[:]
|
146 |
+
time.sleep(0.005)
|
147 |
yield generated_text_without_prompt
|
148 |
|
149 |
CSS ="""
|
|
|
186 |
height: 300px;
|
187 |
}
|
188 |
|
189 |
+
/* Thêm bo góc và giới hạn chiều rộng cho ảnh không thuộc avatar container */
|
190 |
+
.message-wrap.svelte-1lcyrx4 > div.svelte-1lcyrx4 .svelte-1lcyrx4:not(.avatar-container) img {
|
191 |
+
border-radius: 13px;
|
192 |
+
max-width: 50vw;
|
193 |
+
}
|
194 |
|
195 |
"""
|
196 |
|