Spaces:
Runtime error
Runtime error
liuyizhang
commited on
Commit
•
99678ed
1
Parent(s):
3e56ffb
update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ warnings.filterwarnings('ignore')
|
|
5 |
import subprocess, io, os, sys, time
|
6 |
# os.system("pip install gradio==3.36.1")
|
7 |
os.system("pip install gradio==3.40.1")
|
8 |
-
os.system("pip install transformers==4.
|
9 |
import gradio as gr
|
10 |
|
11 |
from loguru import logger
|
@@ -63,7 +63,7 @@ from huggingface_hub import hf_hub_download
|
|
63 |
from utils import computer_info
|
64 |
# relate anything
|
65 |
from ram_utils import iou, sort_and_deduplicate, relation_classes, MLP, show_anns, ram_show_mask
|
66 |
-
from ram_train_eval import RamModel,RamPredictor
|
67 |
from mmengine.config import Config as mmengine_Config
|
68 |
|
69 |
if lama_cleaner_enable:
|
|
|
5 |
import subprocess, io, os, sys, time
|
6 |
# os.system("pip install gradio==3.36.1")
|
7 |
os.system("pip install gradio==3.40.1")
|
8 |
+
os.system("pip install transformers==4.31.0")
|
9 |
import gradio as gr
|
10 |
|
11 |
from loguru import logger
|
|
|
63 |
from utils import computer_info
|
64 |
# relate anything
|
65 |
from ram_utils import iou, sort_and_deduplicate, relation_classes, MLP, show_anns, ram_show_mask
|
66 |
+
from ram_train_eval import RamModel, RamPredictor
|
67 |
from mmengine.config import Config as mmengine_Config
|
68 |
|
69 |
if lama_cleaner_enable:
|