Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from PIL import Image
|
3 |
import requests
|
4 |
import subprocess
|
|
|
5 |
from transformers import Blip2Processor, Blip2ForConditionalGeneration
|
6 |
from huggingface_hub import snapshot_download, HfApi
|
7 |
import torch
|
@@ -15,7 +16,6 @@ import argparse
|
|
15 |
import importlib
|
16 |
import sys
|
17 |
from pathlib import Path
|
18 |
-
import spaces
|
19 |
import zipfile
|
20 |
|
21 |
MAX_IMAGES = 150
|
|
|
2 |
from PIL import Image
|
3 |
import requests
|
4 |
import subprocess
|
5 |
+
import spaces
|
6 |
from transformers import Blip2Processor, Blip2ForConditionalGeneration
|
7 |
from huggingface_hub import snapshot_download, HfApi
|
8 |
import torch
|
|
|
16 |
import importlib
|
17 |
import sys
|
18 |
from pathlib import Path
|
|
|
19 |
import zipfile
|
20 |
|
21 |
MAX_IMAGES = 150
|