Spaces:
Running
Running
Updated app.py to remove fixed height attribute in image input and output.
Browse files
app.py
CHANGED
|
@@ -86,7 +86,6 @@ def prompt(message, history, image: np.ndarray, api_key: str) -> str:
|
|
| 86 |
image_input = gr.Image(
|
| 87 |
label="Input",
|
| 88 |
type="numpy",
|
| 89 |
-
height=512,
|
| 90 |
tool="sketch",
|
| 91 |
interactive=True,
|
| 92 |
brush_radius=20.0,
|
|
@@ -103,8 +102,7 @@ slider_mask_alpha = gr.Slider(
|
|
| 103 |
label="Mask Alpha")
|
| 104 |
image_output = gr.Image(
|
| 105 |
label="SoM Visual Prompt",
|
| 106 |
-
type="numpy"
|
| 107 |
-
height=512)
|
| 108 |
openai_api_key = gr.Textbox(
|
| 109 |
show_label=False,
|
| 110 |
placeholder="Before you start chatting, set your OpenAI API key here",
|
|
|
|
| 86 |
image_input = gr.Image(
|
| 87 |
label="Input",
|
| 88 |
type="numpy",
|
|
|
|
| 89 |
tool="sketch",
|
| 90 |
interactive=True,
|
| 91 |
brush_radius=20.0,
|
|
|
|
| 102 |
label="Mask Alpha")
|
| 103 |
image_output = gr.Image(
|
| 104 |
label="SoM Visual Prompt",
|
| 105 |
+
type="numpy")
|
|
|
|
| 106 |
openai_api_key = gr.Textbox(
|
| 107 |
show_label=False,
|
| 108 |
placeholder="Before you start chatting, set your OpenAI API key here",
|