Spaces:
Runtime error
Runtime error
update gradio ui
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ title_with_logo = f'<img src="data:image/jpeg;base64,{logo_base64}" width="400"
|
|
| 77 |
|
| 78 |
# Create Gradio interface
|
| 79 |
interface = gr.Interface(
|
| 80 |
-
fn=lambda image, options
|
| 81 |
inputs=[image_input,
|
| 82 |
gr.CheckboxGroup(
|
| 83 |
label="Options",
|
|
@@ -89,6 +89,7 @@ interface = gr.Interface(
|
|
| 89 |
description="""
|
| 90 |
This code support image to text transformation. Then the generated text can do retrieval, question answering et al to conduct zero-shot.
|
| 91 |
\n Semantic segment is very slow in cpu(~8m), best use on gpu or run local.
|
|
|
|
| 92 |
"""
|
| 93 |
)
|
| 94 |
|
|
|
|
| 77 |
|
| 78 |
# Create Gradio interface
|
| 79 |
interface = gr.Interface(
|
| 80 |
+
fn=lambda image, options: process_image(image, options, processor),
|
| 81 |
inputs=[image_input,
|
| 82 |
gr.CheckboxGroup(
|
| 83 |
label="Options",
|
|
|
|
| 89 |
description="""
|
| 90 |
This code support image to text transformation. Then the generated text can do retrieval, question answering et al to conduct zero-shot.
|
| 91 |
\n Semantic segment is very slow in cpu(~8m), best use on gpu or run local.
|
| 92 |
+
\n Notice the text2image model is controlnet, which used canny edge as reference.
|
| 93 |
"""
|
| 94 |
)
|
| 95 |
|