Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,9 +146,9 @@ google_key_component = gr.Textbox(
|
|
| 146 |
visible=GOOGLE_API_KEY is None
|
| 147 |
)
|
| 148 |
chatbot_component = gr.Chatbot(
|
| 149 |
-
|
|
|
|
| 150 |
bubble_full_width=False,
|
| 151 |
-
avatar_images=AVATAR_IMAGES,
|
| 152 |
scale=2,
|
| 153 |
height=400
|
| 154 |
)
|
|
@@ -158,7 +158,7 @@ text_prompt_component = gr.Textbox(
|
|
| 158 |
upload_button_component = gr.UploadButton(
|
| 159 |
label="Upload Images", file_count="multiple", file_types=["image"], scale=1
|
| 160 |
)
|
| 161 |
-
run_button_component = gr.Button(value="
|
| 162 |
temperature_component = gr.Slider(
|
| 163 |
minimum=0,
|
| 164 |
maximum=1.0,
|
|
@@ -234,11 +234,7 @@ bot_inputs = [
|
|
| 234 |
]
|
| 235 |
|
| 236 |
with gr.Blocks() as demo:
|
| 237 |
-
gr.HTML(TITLE)
|
| 238 |
-
gr.HTML(SUBTITLE)
|
| 239 |
-
gr.HTML(DUPLICATE)
|
| 240 |
with gr.Column():
|
| 241 |
-
google_key_component.render()
|
| 242 |
chatbot_component.render()
|
| 243 |
with gr.Row():
|
| 244 |
text_prompt_component.render()
|
|
|
|
| 146 |
visible=GOOGLE_API_KEY is None
|
| 147 |
)
|
| 148 |
chatbot_component = gr.Chatbot(
|
| 149 |
+
show_label=False,
|
| 150 |
+
layout="panel",
|
| 151 |
bubble_full_width=False,
|
|
|
|
| 152 |
scale=2,
|
| 153 |
height=400
|
| 154 |
)
|
|
|
|
| 158 |
upload_button_component = gr.UploadButton(
|
| 159 |
label="Upload Images", file_count="multiple", file_types=["image"], scale=1
|
| 160 |
)
|
| 161 |
+
run_button_component = gr.Button(value="Send", variant="primary", scale=1)
|
| 162 |
temperature_component = gr.Slider(
|
| 163 |
minimum=0,
|
| 164 |
maximum=1.0,
|
|
|
|
| 234 |
]
|
| 235 |
|
| 236 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
| 237 |
with gr.Column():
|
|
|
|
| 238 |
chatbot_component.render()
|
| 239 |
with gr.Row():
|
| 240 |
text_prompt_component.render()
|