Update app.py
Browse files
app.py
CHANGED
|
@@ -96,14 +96,15 @@ chatbot_component = gr.Chatbot(
|
|
| 96 |
label='Gemini',
|
| 97 |
bubble_full_width=False,
|
| 98 |
avatar_images=AVATAR_IMAGES,
|
| 99 |
-
scale=
|
| 100 |
height=400
|
| 101 |
)
|
| 102 |
text_prompt_component = gr.Textbox(
|
| 103 |
placeholder="Hi there!",
|
|
|
|
| 104 |
label="Ask me anything and press Enter"
|
| 105 |
)
|
| 106 |
-
run_button_component = gr.Button()
|
| 107 |
temperature_component = gr.Slider(
|
| 108 |
minimum=0,
|
| 109 |
maximum=1.0,
|
|
@@ -183,8 +184,9 @@ with gr.Blocks() as demo:
|
|
| 183 |
with gr.Row():
|
| 184 |
image_prompt_component.render()
|
| 185 |
chatbot_component.render()
|
| 186 |
-
|
| 187 |
-
|
|
|
|
| 188 |
with gr.Accordion("Parameters", open=False):
|
| 189 |
temperature_component.render()
|
| 190 |
max_output_tokens_component.render()
|
|
|
|
| 96 |
label='Gemini',
|
| 97 |
bubble_full_width=False,
|
| 98 |
avatar_images=AVATAR_IMAGES,
|
| 99 |
+
scale=8,
|
| 100 |
height=400
|
| 101 |
)
|
| 102 |
text_prompt_component = gr.Textbox(
|
| 103 |
placeholder="Hi there!",
|
| 104 |
+
scale=8,
|
| 105 |
label="Ask me anything and press Enter"
|
| 106 |
)
|
| 107 |
+
run_button_component = gr.Button(scale=1,)
|
| 108 |
temperature_component = gr.Slider(
|
| 109 |
minimum=0,
|
| 110 |
maximum=1.0,
|
|
|
|
| 184 |
with gr.Row():
|
| 185 |
image_prompt_component.render()
|
| 186 |
chatbot_component.render()
|
| 187 |
+
with gr.Row():
|
| 188 |
+
text_prompt_component.render()
|
| 189 |
+
run_button_component.render()
|
| 190 |
with gr.Accordion("Parameters", open=False):
|
| 191 |
temperature_component.render()
|
| 192 |
max_output_tokens_component.render()
|