Spaces:
Sleeping
Sleeping
File size: 719 Bytes
29cef8e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import git
git_url = "https://github.com/ariG23498/clip_dinoiser.git"
repo_dir = "clip_dinoiser"
git.Repo.clone_from(git_url, repo_dir)
import os
from clip_dinoiser.models.builder import build_model
from clip_dinoiser.utils.visualization import mask2rgb
from clip_dinoiser.segmentation.datasets import PascalVOCDataset
from hydra import compose, initialize
from PIL import Image
import matplotlib.pyplot as plt
from torchvision import transforms as T
import torch.nn.functional as F
import numpy as np
from operator import itemgetter
import torch
import warnings
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch() |