benjaminStreltzin commited on
Commit
116dd4a
verified
1 Parent(s): d41a896

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -5,6 +5,10 @@ from vit_model_test import CustomModel
5
  # Initialize the model
6
  model = CustomModel()
7
 
 
 
 
 
8
  def predict(image: Image.Image):
9
  animation.visible = True # 讛专讗讛 讗转 讛讗谞讬诪爪讬讛
10
  label, confidence = model.predict(image)
 
5
  # Initialize the model
6
  model = CustomModel()
7
 
8
+ theme = gr.themes.Base()
9
+
10
+ with gr.Blocks(theme=theme) as demo:
11
+
12
  def predict(image: Image.Image):
13
  animation.visible = True # 讛专讗讛 讗转 讛讗谞讬诪爪讬讛
14
  label, confidence = model.predict(image)