Spaces:
Build error
Build error
RamAnanth1
commited on
Commit
·
5076c0f
1
Parent(s):
d88097b
fix issue in image2canny
Browse files
app.py
CHANGED
@@ -218,7 +218,7 @@ class image2canny:
|
|
218 |
image = Image.open(inputs)
|
219 |
image = np.array(image)
|
220 |
|
221 |
-
image = cv2.Canny(image,
|
222 |
image = image[:, :, None]
|
223 |
image = np.concatenate([image, image, image], axis=2)
|
224 |
canny_image = Image.fromarray(image)
|
@@ -420,7 +420,7 @@ class ConversationBot:
|
|
420 |
|
421 |
bot = ConversationBot()
|
422 |
with gr.Blocks(css="#chatbot .overflow-y-auto{height:500px}") as demo:
|
423 |
-
gr.Markdown("# Visual ChatGPT <p> Visual ChatGPT combines visual foundation models and ChatGPT to send,receive and process images during chatting
|
424 |
openai_api_key_input = gr.Textbox(type = "password", label = "Enter your OpenAI API key here")
|
425 |
chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
|
426 |
state = gr.State([])
|
|
|
218 |
image = Image.open(inputs)
|
219 |
image = np.array(image)
|
220 |
|
221 |
+
image = cv2.Canny(image, self.low_thresh, self.high_thresh)
|
222 |
image = image[:, :, None]
|
223 |
image = np.concatenate([image, image, image], axis=2)
|
224 |
canny_image = Image.fromarray(image)
|
|
|
420 |
|
421 |
bot = ConversationBot()
|
422 |
with gr.Blocks(css="#chatbot .overflow-y-auto{height:500px}") as demo:
|
423 |
+
gr.Markdown("# Visual ChatGPT <p> Visual ChatGPT combines visual foundation models and ChatGPT to send,receive and process images during chatting</p><br>.<p>This demo currently supports text, image captioning, image generation, and visual question answering</p>")
|
424 |
openai_api_key_input = gr.Textbox(type = "password", label = "Enter your OpenAI API key here")
|
425 |
chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
|
426 |
state = gr.State([])
|