Spaces:
Paused
Paused
ManishThota
commited on
Rename app_main.py to app.py
Browse files- app_main.py → app.py +2 -2
app_main.py → app.py
RENAMED
@@ -10,11 +10,11 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
10 |
|
11 |
|
12 |
# Initialize the model and tokenizer
|
13 |
-
model = AutoModelForCausalLM.from_pretrained("
|
14 |
torch_dtype=torch.float16,
|
15 |
device_map="auto",
|
16 |
trust_remote_code=True)
|
17 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
18 |
|
19 |
def predict_answer(image, question, max_tokens=100):
|
20 |
#Set inputs
|
|
|
10 |
|
11 |
|
12 |
# Initialize the model and tokenizer
|
13 |
+
model = AutoModelForCausalLM.from_pretrained("rrymn/SparrowVQE",
|
14 |
torch_dtype=torch.float16,
|
15 |
device_map="auto",
|
16 |
trust_remote_code=True)
|
17 |
+
tokenizer = AutoTokenizer.from_pretrained("rrymn/SparrowVQE", trust_remote_code=True)
|
18 |
|
19 |
def predict_answer(image, question, max_tokens=100):
|
20 |
#Set inputs
|