AlexanderBenady commited on
Commit
14503ee
1 Parent(s): 2b6dec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -42
app.py CHANGED
@@ -172,48 +172,7 @@ def wrap_process_file(file_obj, tasks):
172
 
173
 
174
  def create_gradio_interface():
175
- css = """
176
- body {
177
- background-color: #121212; /* Dark background for the whole page */
178
- color: #ffffff; /* General text color set to white for contrast */
179
- font-family: Arial, sans-serif; /* Improve readability with a modern font */
180
- }
181
- .gradio-container {
182
- background-color: #1e1e1e; /* Slightly lighter dark shade for containers */
183
- border-radius: 10px;
184
- box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
185
- padding: 20px;
186
- }
187
- button {
188
- background-color: #f1c40f; /* Vivid yellow for buttons */
189
- color: #1e1e1e; /* Dark text on yellow buttons for readability */
190
- border: none;
191
- border-radius: 5px;
192
- padding: 10px 20px;
193
- cursor: pointer;
194
- font-weight: bold;
195
- transition: background-color 0.3s ease; /* Smooth transition for hover effects */
196
- }
197
- button:hover {
198
- background-color: #dab10d; /* Darker yellow on hover for interactive feel */
199
- }
200
- input, textarea, select {
201
- background-color: #333333; /* Dark grey for input fields to differentiate from the container */
202
- color: #ffffff; /* White text in input fields for readability */
203
- border: 2px solid #f1c40f; /* Yellow border for a cohesive design accent */
204
- border-radius: 5px;
205
- padding: 10px;
206
- }
207
- .label {
208
- font-weight: bold;
209
- color: #ffffff; /* Ensure labels are readable against dark background */
210
- margin-bottom: 5px;
211
- }
212
- h1, h2, h3, h4, h5, h6 {
213
- color: #f1c40f; /* Yellow color for headers to stand out and maintain theme consistency */
214
- }
215
- """
216
- with gr.Blocks(css=css) as demo:
217
  gr.Markdown("# LectorSync 1.0")
218
  gr.Markdown("## Upload your file and select the tasks:")
219
  with gr.Row():
 
172
 
173
 
174
  def create_gradio_interface():
175
+ with gr.Blocks(theme="huggingface") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  gr.Markdown("# LectorSync 1.0")
177
  gr.Markdown("## Upload your file and select the tasks:")
178
  with gr.Row():