Update app.py
Browse files
app.py
CHANGED
@@ -80,34 +80,68 @@ def analyze_combined(text, threshold, image):
|
|
80 |
# Gradio UI
|
81 |
custom_css = """
|
82 |
body {
|
83 |
-
background:
|
84 |
-
font-family: '
|
|
|
|
|
85 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
.gr-button {
|
87 |
-
background-color: #
|
88 |
color: white !important;
|
|
|
89 |
border-radius: 8px !important;
|
90 |
-
|
91 |
}
|
|
|
92 |
.gr-button:hover {
|
93 |
-
background-color: #
|
94 |
}
|
95 |
-
|
|
|
96 |
border-radius: 8px !important;
|
97 |
-
border: 1px solid #
|
98 |
-
padding:
|
|
|
99 |
}
|
|
|
100 |
.output-textbox {
|
101 |
-
font-size: 1.
|
102 |
-
|
103 |
-
color: #
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
"""
|
110 |
|
|
|
111 |
demo = gr.Interface(
|
112 |
fn=analyze_combined,
|
113 |
inputs=[
|
|
|
80 |
# Gradio UI
|
81 |
custom_css = """
|
82 |
body {
|
83 |
+
background-color: #f5f6f8;
|
84 |
+
font-family: 'Inter', sans-serif;
|
85 |
+
color: #2e2e2e;
|
86 |
+
padding: 20px;
|
87 |
}
|
88 |
+
|
89 |
+
h1, h2, h3, h4 {
|
90 |
+
font-weight: 600;
|
91 |
+
color: #1a1a1a;
|
92 |
+
}
|
93 |
+
|
94 |
+
.gradio-container {
|
95 |
+
max-width: 900px;
|
96 |
+
margin: auto;
|
97 |
+
padding: 30px;
|
98 |
+
background-color: #ffffff;
|
99 |
+
border-radius: 12px;
|
100 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
|
101 |
+
}
|
102 |
+
|
103 |
.gr-button {
|
104 |
+
background-color: #4f46e5 !important;
|
105 |
color: white !important;
|
106 |
+
font-weight: 500;
|
107 |
border-radius: 8px !important;
|
108 |
+
padding: 10px 20px;
|
109 |
}
|
110 |
+
|
111 |
.gr-button:hover {
|
112 |
+
background-color: #4338ca !important;
|
113 |
}
|
114 |
+
|
115 |
+
.gr-textbox, .gr-slider {
|
116 |
border-radius: 8px !important;
|
117 |
+
border: 1px solid #e5e7eb !important;
|
118 |
+
padding: 12px;
|
119 |
+
font-size: 1rem;
|
120 |
}
|
121 |
+
|
122 |
.output-textbox {
|
123 |
+
font-size: 1.2rem;
|
124 |
+
color: #111827;
|
125 |
+
background-color: #f9fafb;
|
126 |
+
border-radius: 10px;
|
127 |
+
padding: 16px;
|
128 |
+
border: 1px solid #d1d5db;
|
129 |
+
animation: fadeIn 0.8s ease-in-out both;
|
130 |
+
}
|
131 |
+
|
132 |
+
@keyframes fadeIn {
|
133 |
+
0% {
|
134 |
+
opacity: 0;
|
135 |
+
transform: translateY(10px);
|
136 |
+
}
|
137 |
+
100% {
|
138 |
+
opacity: 1;
|
139 |
+
transform: translateY(0);
|
140 |
+
}
|
141 |
}
|
142 |
"""
|
143 |
|
144 |
+
|
145 |
demo = gr.Interface(
|
146 |
fn=analyze_combined,
|
147 |
inputs=[
|