Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,16 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import torch
|
4 |
-
|
5 |
-
from models import imagebind_model
|
6 |
-
from models.imagebind_model import ModalityType
|
|
|
7 |
|
8 |
|
9 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
+
import skimage
|
4 |
+
import IPython.display
|
5 |
+
import matplotlib.pyplot as plt
|
6 |
+
from PIL import Image
|
7 |
+
import numpy as np
|
8 |
+
from collections import OrderedDict
|
9 |
import torch
|
10 |
+
from imagebind import data
|
11 |
+
from imagebind.models import imagebind_model
|
12 |
+
from imagebind.models.imagebind_model import ModalityType
|
13 |
+
import torch.nn as nn
|
14 |
|
15 |
|
16 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|