kantuswx commited on
Commit
9c6a65a
·
verified ·
1 Parent(s): a3b2dc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -1,10 +1,3 @@
1
- # Use a pipeline as a high-level helper
2
- from transformers import pipeline
3
 
4
- pipe = pipeline("zero-shot-image-classification", model="geolocal/StreetCLIP")
5
-
6
- # Load model directly
7
- from transformers import AutoProcessor, AutoModelForZeroShotImageClassification
8
-
9
- processor = AutoProcessor.from_pretrained("geolocal/StreetCLIP")
10
- model = AutoModelForZeroShotImageClassification.from_pretrained("geolocal/StreetCLIP")
 
1
+ import gradio as gr
 
2
 
3
+ gr.load("models/geolocal/StreetCLIP").launch()