Spaces:
Runtime error
Runtime error
update
Browse files- app.py +2 -2
- sam2edit.py +0 -1
app.py
CHANGED
@@ -12,8 +12,8 @@ with gr.Blocks() as demo:
|
|
12 |
with gr.Tabs():
|
13 |
with gr.TabItem('Edit Anything'):
|
14 |
create_demo_edit_anything()
|
15 |
-
with gr.TabItem('Generate Anything'):
|
16 |
-
|
17 |
|
18 |
|
19 |
demo.queue(api_open=False).launch()
|
|
|
12 |
with gr.Tabs():
|
13 |
with gr.TabItem('Edit Anything'):
|
14 |
create_demo_edit_anything()
|
15 |
+
# with gr.TabItem('Generate Anything'):
|
16 |
+
# create_demo_generate_anything()
|
17 |
|
18 |
|
19 |
demo.queue(api_open=False).launch()
|
sam2edit.py
CHANGED
@@ -79,7 +79,6 @@ def create_demo():
|
|
79 |
blip_model = Blip2ForConditionalGeneration.from_pretrained(
|
80 |
"Salesforce/blip2-opt-2.7b", torch_dtype=torch.float16)
|
81 |
blip_model.to(device)
|
82 |
-
blip_model.to(device)
|
83 |
|
84 |
|
85 |
def get_blip2_text(image):
|
|
|
79 |
blip_model = Blip2ForConditionalGeneration.from_pretrained(
|
80 |
"Salesforce/blip2-opt-2.7b", torch_dtype=torch.float16)
|
81 |
blip_model.to(device)
|
|
|
82 |
|
83 |
|
84 |
def get_blip2_text(image):
|