Spaces:
Build error
Build error
Commit
·
162aefa
1
Parent(s):
cd7c661
fix error on Safari
Browse files
app.py
CHANGED
|
@@ -252,9 +252,27 @@ def end_interview(
|
|
| 252 |
upload_interview(session_id, chat_history)
|
| 253 |
return chat_history
|
| 254 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
|
| 256 |
# LAYOUT
|
| 257 |
-
with gr.Blocks(theme="sudeepshouche/minimalist") as demo:
|
| 258 |
# Header and instructions
|
| 259 |
gr.Markdown("# SurveyGPT Interview")
|
| 260 |
instructionText = gr.Markdown(
|
|
|
|
| 252 |
upload_interview(session_id, chat_history)
|
| 253 |
return chat_history
|
| 254 |
|
| 255 |
+
#to be able to select the text on chatbot
|
| 256 |
+
css = """
|
| 257 |
+
.chatbox * {
|
| 258 |
+
-webkit-user-select: text; /* Safari */
|
| 259 |
+
-moz-user-select: text; /* Firefox */
|
| 260 |
+
-ms-user-select: text; /* Internet Explorer/Edge */
|
| 261 |
+
user-select: text; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
|
| 262 |
+
cursor: text; /* Ensure the cursor changes to text selection mode */
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
#chatDisplay .message {
|
| 266 |
+
-webkit-user-select: text; /* Safari */
|
| 267 |
+
-moz-user-select: text; /* Firefox */
|
| 268 |
+
-ms-user-select: text; /* Internet Explorer/Edge */
|
| 269 |
+
user-select: text; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
|
| 270 |
+
cursor: text; /* Ensure the cursor changes to text selection mode */
|
| 271 |
+
}
|
| 272 |
+
"""
|
| 273 |
|
| 274 |
# LAYOUT
|
| 275 |
+
with gr.Blocks(theme="sudeepshouche/minimalist", css = css) as demo:
|
| 276 |
# Header and instructions
|
| 277 |
gr.Markdown("# SurveyGPT Interview")
|
| 278 |
instructionText = gr.Markdown(
|