Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -585,7 +585,6 @@ def create_modern_interface():
|
|
585 |
--error-color: #f56565;
|
586 |
--warning-color: #ed8936;
|
587 |
}
|
588 |
-
|
589 |
/* Container styling */
|
590 |
.container {
|
591 |
max-width: 1200px;
|
@@ -595,7 +594,6 @@ def create_modern_interface():
|
|
595 |
border-radius: 1rem;
|
596 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
597 |
}
|
598 |
-
|
599 |
/* Component styling */
|
600 |
.input-container {
|
601 |
background-color: white;
|
@@ -604,7 +602,6 @@ def create_modern_interface():
|
|
604 |
border: 1px solid #e2e8f0;
|
605 |
margin-bottom: 1rem;
|
606 |
}
|
607 |
-
|
608 |
/* Button styling */
|
609 |
.primary-button {
|
610 |
background-color: var(--primary-color);
|
@@ -615,23 +612,19 @@ def create_modern_interface():
|
|
615 |
cursor: pointer;
|
616 |
transition: all 0.2s;
|
617 |
}
|
618 |
-
|
619 |
.primary-button:hover {
|
620 |
background-color: var(--accent-color);
|
621 |
transform: translateY(-1px);
|
622 |
}
|
623 |
-
|
624 |
/* Status messages */
|
625 |
.status {
|
626 |
padding: 1rem;
|
627 |
border-radius: 0.375rem;
|
628 |
margin: 1rem 0;
|
629 |
}
|
630 |
-
|
631 |
.status.success { background-color: #f0fff4; color: var(--success-color); }
|
632 |
.status.error { background-color: #fff5f5; color: var(--error-color); }
|
633 |
.status.warning { background-color: #fffaf0; color: var(--warning-color); }
|
634 |
-
|
635 |
/* Gallery styling */
|
636 |
.gallery {
|
637 |
display: grid;
|
@@ -642,14 +635,12 @@ def create_modern_interface():
|
|
642 |
border-radius: 0.5rem;
|
643 |
border: 1px solid #e2e8f0;
|
644 |
}
|
645 |
-
|
646 |
.gallery img {
|
647 |
width: 100%;
|
648 |
height: auto;
|
649 |
border-radius: 0.375rem;
|
650 |
transition: transform 0.2s;
|
651 |
}
|
652 |
-
|
653 |
.gallery img:hover {
|
654 |
transform: scale(1.05);
|
655 |
}
|
@@ -826,7 +817,7 @@ def create_modern_interface():
|
|
826 |
if files:
|
827 |
for file in files:
|
828 |
file_results = file_processor.process_file(file)
|
829 |
-
|
830 |
results.extend(file_results)
|
831 |
|
832 |
# Generate QR codes
|
@@ -881,7 +872,7 @@ def create_modern_interface():
|
|
881 |
- Hover over QR codes in the gallery to see details
|
882 |
""")
|
883 |
|
884 |
-
|
885 |
|
886 |
def main():
|
887 |
"""Initialize and launch the application"""
|
|
|
585 |
--error-color: #f56565;
|
586 |
--warning-color: #ed8936;
|
587 |
}
|
|
|
588 |
/* Container styling */
|
589 |
.container {
|
590 |
max-width: 1200px;
|
|
|
594 |
border-radius: 1rem;
|
595 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
596 |
}
|
|
|
597 |
/* Component styling */
|
598 |
.input-container {
|
599 |
background-color: white;
|
|
|
602 |
border: 1px solid #e2e8f0;
|
603 |
margin-bottom: 1rem;
|
604 |
}
|
|
|
605 |
/* Button styling */
|
606 |
.primary-button {
|
607 |
background-color: var(--primary-color);
|
|
|
612 |
cursor: pointer;
|
613 |
transition: all 0.2s;
|
614 |
}
|
|
|
615 |
.primary-button:hover {
|
616 |
background-color: var(--accent-color);
|
617 |
transform: translateY(-1px);
|
618 |
}
|
|
|
619 |
/* Status messages */
|
620 |
.status {
|
621 |
padding: 1rem;
|
622 |
border-radius: 0.375rem;
|
623 |
margin: 1rem 0;
|
624 |
}
|
|
|
625 |
.status.success { background-color: #f0fff4; color: var(--success-color); }
|
626 |
.status.error { background-color: #fff5f5; color: var(--error-color); }
|
627 |
.status.warning { background-color: #fffaf0; color: var(--warning-color); }
|
|
|
628 |
/* Gallery styling */
|
629 |
.gallery {
|
630 |
display: grid;
|
|
|
635 |
border-radius: 0.5rem;
|
636 |
border: 1px solid #e2e8f0;
|
637 |
}
|
|
|
638 |
.gallery img {
|
639 |
width: 100%;
|
640 |
height: auto;
|
641 |
border-radius: 0.375rem;
|
642 |
transition: transform 0.2s;
|
643 |
}
|
|
|
644 |
.gallery img:hover {
|
645 |
transform: scale(1.05);
|
646 |
}
|
|
|
817 |
if files:
|
818 |
for file in files:
|
819 |
file_results = file_processor.process_file(file)
|
820 |
+
if file_results:
|
821 |
results.extend(file_results)
|
822 |
|
823 |
# Generate QR codes
|
|
|
872 |
- Hover over QR codes in the gallery to see details
|
873 |
""")
|
874 |
|
875 |
+
return interface
|
876 |
|
877 |
def main():
|
878 |
"""Initialize and launch the application"""
|