Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import torch
|
@@ -12,7 +13,7 @@ DEFAULT_PROMPT = "<image>"
|
|
12 |
|
13 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
14 |
|
15 |
-
model = FlamingoModel.from_pretrained('dhansmair/flamingo-
|
16 |
model.to(device)
|
17 |
model.eval()
|
18 |
|
|
|
1 |
+
|
2 |
import os
|
3 |
import gradio as gr
|
4 |
import torch
|
|
|
13 |
|
14 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
15 |
|
16 |
+
model = FlamingoModel.from_pretrained('dhansmair/flamingo-tiny')
|
17 |
model.to(device)
|
18 |
model.eval()
|
19 |
|