WangQvQ commited on
Commit
670c973
1 Parent(s): 535cc03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,4 +1,8 @@
1
-
 
 
 
 
2
 
3
  # Load the pre-trained BEiT model and feature extractor
4
  feature_extractor = BeitFeatureExtractor.from_pretrained('microsoft/beit-large-patch16-512')
 
1
+ import gradio as gr
2
+ from transformers import BeitFeatureExtractor, BeitForImageClassification
3
+ from PIL import Image
4
+ import requests
5
+ import numpy as np
6
 
7
  # Load the pre-trained BEiT model and feature extractor
8
  feature_extractor = BeitFeatureExtractor.from_pretrained('microsoft/beit-large-patch16-512')