Update app.py
Browse files
app.py
CHANGED
@@ -139,6 +139,32 @@ def save_uploaded_files(files):
|
|
139 |
|
140 |
return saved_paths
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
# Gradio UI Layout
|
143 |
with gr.Blocks(css=custom_css) as demo:
|
144 |
gr.Markdown("# Systematic Review Generator for Research Papers")
|
@@ -205,32 +231,6 @@ with gr.Blocks(css=custom_css) as demo:
|
|
205 |
outputs=[review_output]
|
206 |
)
|
207 |
|
208 |
-
# Add CSS styling
|
209 |
-
custom_css = """
|
210 |
-
<style>
|
211 |
-
#generate_button {
|
212 |
-
background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%); /* Purple gradient */
|
213 |
-
color: white;
|
214 |
-
font-weight: bold;
|
215 |
-
}
|
216 |
-
#generate_button:hover {
|
217 |
-
background: linear-gradient(135deg, #5b10f1 0%, #9f3ef3 100%); /* Slightly lighter */
|
218 |
-
}
|
219 |
-
#api_key_button {
|
220 |
-
background: linear-gradient(135deg, #68d391 0%, #48bb78 100%); /* Green gradient */
|
221 |
-
color: white;
|
222 |
-
font-weight: bold;
|
223 |
-
margin-top: 27px;
|
224 |
-
}
|
225 |
-
#api_key_button:hover {
|
226 |
-
background: linear-gradient(135deg, #38a169 0%, #68d391 100%); /* Slightly darker green */
|
227 |
-
}
|
228 |
-
.gradio-container {
|
229 |
-
max-width: 1200px !important;
|
230 |
-
}
|
231 |
-
</style>
|
232 |
-
"""
|
233 |
-
|
234 |
# Launch the app
|
235 |
if __name__ == "__main__":
|
236 |
demo.launch(share=True)
|
|
|
139 |
|
140 |
return saved_paths
|
141 |
|
142 |
+
# Add CSS styling
|
143 |
+
custom_css = """
|
144 |
+
<style>
|
145 |
+
#generate_button {
|
146 |
+
background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%); /* Purple gradient */
|
147 |
+
color: white;
|
148 |
+
font-weight: bold;
|
149 |
+
}
|
150 |
+
#generate_button:hover {
|
151 |
+
background: linear-gradient(135deg, #5b10f1 0%, #9f3ef3 100%); /* Slightly lighter */
|
152 |
+
}
|
153 |
+
#api_key_button {
|
154 |
+
background: linear-gradient(135deg, #68d391 0%, #48bb78 100%); /* Green gradient */
|
155 |
+
color: white;
|
156 |
+
font-weight: bold;
|
157 |
+
margin-top: 27px;
|
158 |
+
}
|
159 |
+
#api_key_button:hover {
|
160 |
+
background: linear-gradient(135deg, #38a169 0%, #68d391 100%); /* Slightly darker green */
|
161 |
+
}
|
162 |
+
.gradio-container {
|
163 |
+
max-width: 1200px !important;
|
164 |
+
}
|
165 |
+
</style>
|
166 |
+
"""
|
167 |
+
|
168 |
# Gradio UI Layout
|
169 |
with gr.Blocks(css=custom_css) as demo:
|
170 |
gr.Markdown("# Systematic Review Generator for Research Papers")
|
|
|
231 |
outputs=[review_output]
|
232 |
)
|
233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
# Launch the app
|
235 |
if __name__ == "__main__":
|
236 |
demo.launch(share=True)
|