Spaces:
Sleeping
Sleeping
sonu
commited on
Commit
·
ae5a541
1
Parent(s):
ab1e39e
Add application file
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from PIL import Image
|
|
4 |
from transformers import AutoProcessor, AutoModelForCausalLM
|
5 |
|
6 |
# Load model and processor
|
7 |
-
processor = AutoProcessor.from_pretrained("
|
8 |
model = AutoModelForCausalLM.from_pretrained("sonukiller/git-base-cartoon")
|
9 |
|
10 |
# Move model to GPU if available
|
|
|
4 |
from transformers import AutoProcessor, AutoModelForCausalLM
|
5 |
|
6 |
# Load model and processor
|
7 |
+
processor = AutoProcessor.from_pretrained("microsoft/git-base")
|
8 |
model = AutoModelForCausalLM.from_pretrained("sonukiller/git-base-cartoon")
|
9 |
|
10 |
# Move model to GPU if available
|