Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoProcessor, AutoModel
|
3 |
|
4 |
-
processor = AutoProcessor.from_pretrained("
|
5 |
|
6 |
-
model = AutoModel.from_pretrained("
|
7 |
|
8 |
|
9 |
def calculate_score(image, text):
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoProcessor, AutoModel
|
3 |
|
4 |
+
processor = AutoProcessor.from_pretrained("laion/CLIP-ViT-H-14-laion2B-s32B-b79K")
|
5 |
|
6 |
+
model = AutoModel.from_pretrained("laion/CLIP-ViT-H-14-laion2B-s32B-b79K")
|
7 |
|
8 |
|
9 |
def calculate_score(image, text):
|