Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
from transformers import CLIPProcessor, CLIPModel, BlipProcessor, BlipForConditionalGeneration
|
4 |
-
from PIL import Image, ImageChops
|
5 |
import numpy as np
|
6 |
import matplotlib.pyplot as plt
|
7 |
from openai import OpenAI
|
@@ -132,7 +132,7 @@ with gr.Blocks() as demo:
|
|
132 |
|
133 |
with gr.Row():
|
134 |
gr.Markdown("## 图像差异")
|
135 |
-
result_diff = gr.Gallery(label="混合差异图像")
|
136 |
|
137 |
with gr.Row():
|
138 |
result_caption_a = gr.Textbox(label="图片A描述", interactive=False)
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
from transformers import CLIPProcessor, CLIPModel, BlipProcessor, BlipForConditionalGeneration
|
4 |
+
from PIL import Image, ImageChops, ImageFilter
|
5 |
import numpy as np
|
6 |
import matplotlib.pyplot as plt
|
7 |
from openai import OpenAI
|
|
|
132 |
|
133 |
with gr.Row():
|
134 |
gr.Markdown("## 图像差异")
|
135 |
+
result_diff = gr.Gallery(label="混合差异图像")
|
136 |
|
137 |
with gr.Row():
|
138 |
result_caption_a = gr.Textbox(label="图片A描述", interactive=False)
|