LPX55 commited on
Commit
bc6c323
·
verified ·
1 Parent(s): 2d3dc2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import spaces
2
  import gradio as gr
3
  import modelscope_studio.components.antd as antd
 
4
  import modelscope_studio.components.base as ms
5
  from transformers import pipeline, AutoImageProcessor, SwinForImageClassification, Swinv2ForImageClassification, AutoFeatureExtractor, AutoModelForImageClassification
6
  from torchvision import transforms
@@ -250,6 +251,13 @@ def predict_image_with_html(img, confidence_threshold, augment_methods, rotate_d
250
  with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ overflow-y: hidden !important;}") as iface:
251
  with ms.Application() as app:
252
  with antd.ConfigProvider():
 
 
 
 
 
 
 
253
  with gr.Accordion("Project OpenSight - Model Evaluations & Playground", open=False, elem_id="project_accordion"):
254
  gr.Markdown("## OpenSight is a SOTA gen. image detection model, in pre-release prep.\n\nThis HF Space is a temporary home for us and the public to evaluate the shortcomings of current open source models.\n\n<-- Feel free to play around by starting with an image as we prepare our formal announcement.")
255
  with gr.Tab("👀 Model Evals / Playground"):
 
1
  import spaces
2
  import gradio as gr
3
  import modelscope_studio.components.antd as antd
4
+ import modelscope_studio.components.antdx as antdx
5
  import modelscope_studio.components.base as ms
6
  from transformers import pipeline, AutoImageProcessor, SwinForImageClassification, Swinv2ForImageClassification, AutoFeatureExtractor, AutoModelForImageClassification
7
  from torchvision import transforms
 
251
  with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ overflow-y: hidden !important;}") as iface:
252
  with ms.Application() as app:
253
  with antd.ConfigProvider():
254
+ antdx.Welcome(
255
+ icon=
256
+ "https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*s5sNRo5LjfQAAAAAAAAAAAAADgCCAQ/fmt.webp",
257
+ title="Welcome to Project OpenSight",
258
+ description=
259
+ "OpenSight is a SOTA gen. image detection model, in pre-release prep. This HF Space is a temporary home for us and the public to evaluate the shortcomings of current open source models."
260
+ )
261
  with gr.Accordion("Project OpenSight - Model Evaluations & Playground", open=False, elem_id="project_accordion"):
262
  gr.Markdown("## OpenSight is a SOTA gen. image detection model, in pre-release prep.\n\nThis HF Space is a temporary home for us and the public to evaluate the shortcomings of current open source models.\n\n<-- Feel free to play around by starting with an image as we prepare our formal announcement.")
263
  with gr.Tab("👀 Model Evals / Playground"):