Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ import torch
|
|
7 |
feature_extractor = YolosImageProcessor.from_pretrained("hustvl/yolos-small")
|
8 |
dmodel = YolosForObjectDetection.from_pretrained('hustvl/yolos-small')
|
9 |
|
10 |
-
model = CLIPModel.from_pretrained("openai/clip-vit-base-
|
11 |
-
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-
|
12 |
|
13 |
i1 = gr.Image(type="pil", label="Input image")
|
14 |
i2 = gr.Textbox(label="Description for section to extracted")
|
|
|
7 |
feature_extractor = YolosImageProcessor.from_pretrained("hustvl/yolos-small")
|
8 |
dmodel = YolosForObjectDetection.from_pretrained('hustvl/yolos-small')
|
9 |
|
10 |
+
model = CLIPModel.from_pretrained("openai/clip-vit-base-patch16")
|
11 |
+
processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch16")
|
12 |
|
13 |
i1 = gr.Image(type="pil", label="Input image")
|
14 |
i2 = gr.Textbox(label="Description for section to extracted")
|