Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,18 @@
|
|
1 |
-
|
2 |
import os
|
|
|
|
|
|
|
|
|
|
|
3 |
import gradio as gr
|
4 |
import torch
|
5 |
import torch.nn as nn
|
6 |
-
from PIL import Image
|
7 |
from transformers import CLIPModel, AutoModel
|
8 |
-
from typing import Optional
|
9 |
|
|
|
10 |
from safetensors.torch import load_model
|
11 |
|
12 |
-
os.environ["WANDB_DISABLED"] = "true"
|
13 |
-
|
14 |
from datasets import load_dataset, load_metric
|
15 |
from transformers import (
|
16 |
AutoConfig,
|
|
|
1 |
+
from typing import Optional
|
2 |
import os
|
3 |
+
os.environ["WANDB_DISABLED"] = "true"
|
4 |
+
|
5 |
+
import numpy as np
|
6 |
+
|
7 |
+
from PIL import Image
|
8 |
import gradio as gr
|
9 |
import torch
|
10 |
import torch.nn as nn
|
|
|
11 |
from transformers import CLIPModel, AutoModel
|
|
|
12 |
|
13 |
+
from huggingface_hub import hf_hub_download
|
14 |
from safetensors.torch import load_model
|
15 |
|
|
|
|
|
16 |
from datasets import load_dataset, load_metric
|
17 |
from transformers import (
|
18 |
AutoConfig,
|