lombardata commited on
Commit
e3a5e5e
1 Parent(s): 70f0e9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -89,6 +89,14 @@ def predict_wrapper(image, slider_threshold=0.5):
89
  title = "Victor - DinoVd'eau image classification"
90
  model_link = "https://huggingface.co/" + checkpoint_name
91
  description = f"This application showcases the capability of artificial intelligence-based systems to identify objects within underwater images. To utilize it, you can either upload your own image or select one of the provided examples for analysis.\nFor predictions, we use this [open-source model]({model_link})"
 
 
 
 
 
 
 
 
92
 
93
  iface = gr.Interface(
94
  fn=predict_wrapper,
@@ -98,7 +106,7 @@ iface = gr.Interface(
98
  gr.components.Label(label="Slider Threshold Predictions")
99
  ],
100
  title=title,
101
- description=description,
102
  examples=[["session_GOPR0106.JPG"],
103
  ["session_2021_08_30_Mayotte_10_image_00066.jpg"],
104
  ["session_2018_11_17_kite_Le_Morne_Manawa_G0065777.JPG"],
 
89
  title = "Victor - DinoVd'eau image classification"
90
  model_link = "https://huggingface.co/" + checkpoint_name
91
  description = f"This application showcases the capability of artificial intelligence-based systems to identify objects within underwater images. To utilize it, you can either upload your own image or select one of the provided examples for analysis.\nFor predictions, we use this [open-source model]({model_link})"
92
+ description = ("This application showcases the capability of artificial intelligence-based systems "
93
+ "to identify objects within underwater images. To utilize it, you can either upload "
94
+ "your own image or select one of the provided examples for analysis. "
95
+ "\nFor predictions, we use this [open-source model](model_link)")
96
+ # New subtitle message to be added
97
+ subtitle = "Note: the model runs on CPU, so it may take a while to run the model."
98
+ # Combine description and subtitle
99
+ full_description = f"{description}\n\n{subtitle}"
100
 
101
  iface = gr.Interface(
102
  fn=predict_wrapper,
 
106
  gr.components.Label(label="Slider Threshold Predictions")
107
  ],
108
  title=title,
109
+ description=full_description,
110
  examples=[["session_GOPR0106.JPG"],
111
  ["session_2021_08_30_Mayotte_10_image_00066.jpg"],
112
  ["session_2018_11_17_kite_Le_Morne_Manawa_G0065777.JPG"],