Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as gr
|
|
| 4 |
import torch
|
| 5 |
|
| 6 |
processor = AutoProcessor.from_pretrained("microsoft/git-base")
|
| 7 |
-
model = AutoModelForCausalLM.from_pretrained('
|
| 8 |
|
| 9 |
def predict(image):
|
| 10 |
# Prepare the image using the processor
|
|
|
|
| 4 |
import torch
|
| 5 |
|
| 6 |
processor = AutoProcessor.from_pretrained("microsoft/git-base")
|
| 7 |
+
model = AutoModelForCausalLM.from_pretrained('PattananKKK/instagram-caption-generator-updated')
|
| 8 |
|
| 9 |
def predict(image):
|
| 10 |
# Prepare the image using the processor
|