mjwong commited on
Commit
58aec17
·
verified ·
1 Parent(s): 764d4a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -80,9 +80,8 @@ footer {display:none !important}
80
  transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
81
  box-shadow: none !important;
82
  }
83
- .gr-button-primary:hover{
84
- background: none rgb(66, 133, 244) !important;
85
- box-shadow: rgb(0 0 0 / 23%) 0px 1px 7px 0px !important;
86
  }
87
  """
88
 
@@ -103,7 +102,7 @@ with gr.Blocks(css=css) as iface:
103
  output_label = gr.Label(label="Classification Scores")
104
 
105
  # Classification button
106
- submit_button = gr.Button("Classify")
107
  submit_button.click(fn=classify_text, inputs=[model_dropdown, text_input, label_input], outputs=output_label)
108
 
109
  # Example input/output pairs
@@ -112,4 +111,3 @@ with gr.Blocks(css=css) as iface:
112
  # Launch the app
113
  if __name__ == "__main__":
114
  iface.launch()
115
-
 
80
  transition: box-shadow 200ms ease 0s, background 200ms ease 0s !important;
81
  box-shadow: none !important;
82
  }
83
+ .classify-button {
84
+ background: linear-gradient(90deg, yellow, orange) !important;
 
85
  }
86
  """
87
 
 
102
  output_label = gr.Label(label="Classification Scores")
103
 
104
  # Classification button
105
+ submit_button = gr.Button("Classify", elem_classes=["classify-button"])
106
  submit_button.click(fn=classify_text, inputs=[model_dropdown, text_input, label_input], outputs=output_label)
107
 
108
  # Example input/output pairs
 
111
  # Launch the app
112
  if __name__ == "__main__":
113
  iface.launch()