Spaces:
Running
on
Zero
Running
on
Zero
fix spaces
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import torch
|
|
2 |
import torch.nn.functional as F
|
3 |
from transformers import AutoTokenizer, AutoModel, AutoImageProcessor
|
4 |
import gradio as gr
|
|
|
5 |
|
6 |
processor = AutoImageProcessor.from_pretrained("nomic-ai/nomic-embed-vision-v1.5")
|
7 |
vision_model = AutoModel.from_pretrained("nomic-ai/nomic-embed-vision-v1.5", trust_remote_code=True)
|
|
|
2 |
import torch.nn.functional as F
|
3 |
from transformers import AutoTokenizer, AutoModel, AutoImageProcessor
|
4 |
import gradio as gr
|
5 |
+
import spaces
|
6 |
|
7 |
processor = AutoImageProcessor.from_pretrained("nomic-ai/nomic-embed-vision-v1.5")
|
8 |
vision_model = AutoModel.from_pretrained("nomic-ai/nomic-embed-vision-v1.5", trust_remote_code=True)
|