zihaoz96 commited on
Commit
5979f7f
·
1 Parent(s): 0aa401d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -51,6 +51,13 @@ image = gr.inputs.Image(shape=(300, 300), label="Upload Your Image Here")
51
  label = gr.outputs.Label(num_top_classes=len(labels))
52
 
53
  samples = [["samples/" + p + ".jpg"] for p in labels]
 
 
 
 
 
 
 
54
 
55
  interface = gr.Interface(
56
  fn=predict_image,
@@ -61,6 +68,6 @@ interface = gr.Interface(
61
  title="🦈 Shark image classifier",
62
  description="Made with HugsVision & ❤️",
63
  examples=samples,
64
- css=None
65
  )
66
  interface.launch()
 
51
  label = gr.outputs.Label(num_top_classes=len(labels))
52
 
53
  samples = [["samples/" + p + ".jpg"] for p in labels]
54
+
55
+ css = ```
56
+ .confidence{
57
+ color: white;
58
+ }
59
+
60
+ ```
61
 
62
  interface = gr.Interface(
63
  fn=predict_image,
 
68
  title="🦈 Shark image classifier",
69
  description="Made with HugsVision & ❤️",
70
  examples=samples,
71
+ css=css
72
  )
73
  interface.launch()