MattGPT commited on
Commit
8fc34b5
1 Parent(s): 027ba63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -1
app.py CHANGED
@@ -30,7 +30,34 @@ def create_config(model_name, num_labels, use_cache):
30
 
31
  # Start building the Gradio interface
32
  with gr.Group(elem_id="UI-conf"):
33
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  gr.Markdown("## Config Class - Transformers") # Display a title for the web interface.
35
  with gr.Row(): # Create a row in the interface to organize elements horizontally.
36
  # Dropdown menu to select a model.
 
30
 
31
  # Start building the Gradio interface
32
  with gr.Group(elem_id="UI-conf"):
33
+ custom_css = """
34
+ .gradio-container {
35
+ background-color: #f0f0f0; /* Light grey background */
36
+ font-family: Arial, sans-serif;
37
+ }
38
+ .gradio-textbox {
39
+ border: 2px solid #4CAF50; /* Green border for textboxes */
40
+ border-radius: 5px;
41
+ }
42
+ .gradio-button {
43
+ background-color: #4CAF50; /* Green background for buttons */
44
+ color: white;
45
+ border: none;
46
+ border-radius: 5px;
47
+ padding: 10px 20px;
48
+ text-align: center;
49
+ text-decoration: none;
50
+ display: inline-block;
51
+ font-size: 16px;
52
+ margin: 4px 2px;
53
+ cursor: pointer;
54
+ }
55
+ .gradio-button:hover {
56
+ background-color: #45a049; /* Darker green on hover */
57
+ }
58
+ """
59
+
60
+ with gr.Blocks(css=custom_css) as demo:
61
  gr.Markdown("## Config Class - Transformers") # Display a title for the web interface.
62
  with gr.Row(): # Create a row in the interface to organize elements horizontally.
63
  # Dropdown menu to select a model.