Spaces:
Sleeping
Sleeping
Add application file
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import AutoModel, AutoProcessor
|
3 |
from PIL import Image
|
4 |
import torch
|
|
|
5 |
|
6 |
model_name_or_path = "lyttt/VLV_captioner"
|
7 |
model = AutoModel.from_pretrained(model_name_or_path, revision="master", trust_remote_code=True,low_cpu_mem_usage=False)
|
|
|
2 |
from transformers import AutoModel, AutoProcessor
|
3 |
from PIL import Image
|
4 |
import torch
|
5 |
+
import numpy as np
|
6 |
|
7 |
model_name_or_path = "lyttt/VLV_captioner"
|
8 |
model = AutoModel.from_pretrained(model_name_or_path, revision="master", trust_remote_code=True,low_cpu_mem_usage=False)
|