Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def greet(name):
|
|
|
|
| 1 |
+
import clip
|
| 2 |
+
import gc
|
| 3 |
+
import numpy as np
|
| 4 |
+
import os
|
| 5 |
+
import pandas as pd
|
| 6 |
+
import requests
|
| 7 |
+
import torch
|
| 8 |
+
import torchvision.transforms as T
|
| 9 |
+
import torchvision.transforms.functional as TF
|
| 10 |
+
|
| 11 |
+
from IPython.display import display
|
| 12 |
+
from PIL import Image
|
| 13 |
+
from torch import nn
|
| 14 |
+
from torch.nn import functional as F
|
| 15 |
+
from torchvision import transforms
|
| 16 |
+
from torchvision.transforms.functional import InterpolationMode
|
| 17 |
+
from BLIP.models.blip import blip_decoder
|
| 18 |
+
|
| 19 |
import gradio as gr
|
| 20 |
|
| 21 |
def greet(name):
|