Spaces:
Runtime error
Runtime error
Final Touch
Browse files- __pycache__/_helper_functions.cpython-312.pyc +0 -0
- _helper_functions.py +7 -13
- streamlit_app.py +2 -0
__pycache__/_helper_functions.cpython-312.pyc
ADDED
Binary file (34.6 kB). View file
|
|
_helper_functions.py
CHANGED
@@ -391,12 +391,12 @@ def display_alert_note(message, container):
|
|
391 |
<style>
|
392 |
@keyframes pulse {
|
393 |
0% { transform: scale(1); }
|
394 |
-
50% { transform: scale(1.
|
395 |
100% { transform: scale(1); }
|
396 |
}
|
397 |
@keyframes wiggle {
|
398 |
0% { transform: rotate(0deg); }
|
399 |
-
50% { transform: rotate(
|
400 |
100% { transform: rotate(0deg); }
|
401 |
}
|
402 |
.alert-box {
|
@@ -408,27 +408,21 @@ def display_alert_note(message, container):
|
|
408 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
409 |
animation: pulse 2s infinite alternate;
|
410 |
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
|
|
|
411 |
}
|
412 |
.alert-box:hover {
|
413 |
transform: scale(1.05);
|
414 |
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
|
415 |
-
animation: wiggle 0.
|
416 |
}
|
417 |
.alert-icon {
|
418 |
position: absolute;
|
419 |
-
top:
|
420 |
right: 10px;
|
421 |
font-size: 24px;
|
422 |
}
|
423 |
.alert-flare {
|
424 |
-
|
425 |
-
top: -20px;
|
426 |
-
left: -20px;
|
427 |
-
width: 100px;
|
428 |
-
height: 100px;
|
429 |
-
background-color: rgba(255, 255, 255, 0.3);
|
430 |
-
border-radius: 50%;
|
431 |
-
animation: pulse 2s infinite alternate;
|
432 |
}
|
433 |
</style>
|
434 |
"""
|
@@ -504,7 +498,7 @@ def display_attention_text(text, container):
|
|
504 |
st.markdown(custom_css, unsafe_allow_html=True)
|
505 |
|
506 |
# Display text in a Markdown object with custom CSS class
|
507 |
-
animated_text_html = ''.join(f'<span class="animated-text-in-attention" style="animation-delay: {i * 0.
|
508 |
|
509 |
text_html = f"""
|
510 |
<div class="build-text-container">
|
|
|
391 |
<style>
|
392 |
@keyframes pulse {
|
393 |
0% { transform: scale(1); }
|
394 |
+
50% { transform: scale(1.03); }
|
395 |
100% { transform: scale(1); }
|
396 |
}
|
397 |
@keyframes wiggle {
|
398 |
0% { transform: rotate(0deg); }
|
399 |
+
50% { transform: rotate(6deg); }
|
400 |
100% { transform: rotate(0deg); }
|
401 |
}
|
402 |
.alert-box {
|
|
|
408 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
409 |
animation: pulse 2s infinite alternate;
|
410 |
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
|
411 |
+
overflow:visible;
|
412 |
}
|
413 |
.alert-box:hover {
|
414 |
transform: scale(1.05);
|
415 |
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
|
416 |
+
animation: wiggle 0.3s infinite alternate;
|
417 |
}
|
418 |
.alert-icon {
|
419 |
position: absolute;
|
420 |
+
top: 40px;
|
421 |
right: 10px;
|
422 |
font-size: 24px;
|
423 |
}
|
424 |
.alert-flare {
|
425 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
}
|
427 |
</style>
|
428 |
"""
|
|
|
498 |
st.markdown(custom_css, unsafe_allow_html=True)
|
499 |
|
500 |
# Display text in a Markdown object with custom CSS class
|
501 |
+
animated_text_html = ''.join(f'<span class="animated-text-in-attention" style="animation-delay: {i * 0.0005}s;">{char}</span>' if char != ' ' else '<span class="animated-text-in-attention space"></span>' for i, char in enumerate(text))
|
502 |
|
503 |
text_html = f"""
|
504 |
<div class="build-text-container">
|
streamlit_app.py
CHANGED
@@ -76,6 +76,8 @@ if selected_option == "Retrieval Augmented Generation":
|
|
76 |
display_heading_box(message = "Citations for responses", container= leftCol)
|
77 |
loadItOnce(container=leftCol, animation=citations, height=200, quality='low')
|
78 |
|
|
|
|
|
79 |
#------------------------------------------------------------------------------ Alert Message in the Middle Column of parent container
|
80 |
display_alert_note(message="Note: \
|
81 |
Multiple Files with same names will be considered unique while constructing Vector Embeddings \
|
|
|
76 |
display_heading_box(message = "Citations for responses", container= leftCol)
|
77 |
loadItOnce(container=leftCol, animation=citations, height=200, quality='low')
|
78 |
|
79 |
+
upld.markdown("#")
|
80 |
+
upld.markdown("#")
|
81 |
#------------------------------------------------------------------------------ Alert Message in the Middle Column of parent container
|
82 |
display_alert_note(message="Note: \
|
83 |
Multiple Files with same names will be considered unique while constructing Vector Embeddings \
|