Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1393,10 +1393,9 @@ def create_ui():
|
|
1393 |
|
1394 |
with gr.Column(visible=False) as modules_not_need_gpt2:
|
1395 |
with gr.Blocks():
|
1396 |
-
chatbot = gr.Chatbot(label="Chatbox", elem_classes="chatbot",likeable=True
|
1397 |
with gr.Column(visible=False) as modules_need_gpt3:
|
1398 |
-
chat_input = gr.Textbox(show_label=False, placeholder="Enter text and press Enter")
|
1399 |
-
container=False)
|
1400 |
with gr.Row():
|
1401 |
clear_button_text = gr.Button(value="Clear Text", interactive=True)
|
1402 |
submit_button_text = gr.Button(value="Send", interactive=True, variant="primary")
|
@@ -1508,6 +1507,8 @@ def create_ui():
|
|
1508 |
with gr.Column():
|
1509 |
result = gr.Gallery(
|
1510 |
label="Result"
|
|
|
|
|
1511 |
# columns=4,
|
1512 |
# rows=2,
|
1513 |
# show_label=False,
|
@@ -1517,7 +1518,7 @@ def create_ui():
|
|
1517 |
# preview=True,
|
1518 |
# show_share_button=True,
|
1519 |
# show_download_button=True
|
1520 |
-
)
|
1521 |
|
1522 |
|
1523 |
|
|
|
1393 |
|
1394 |
with gr.Column(visible=False) as modules_not_need_gpt2:
|
1395 |
with gr.Blocks():
|
1396 |
+
chatbot = gr.Chatbot(label="Chatbox", elem_classes="chatbot",likeable=True,height=600)
|
1397 |
with gr.Column(visible=False) as modules_need_gpt3:
|
1398 |
+
chat_input = gr.Textbox(show_label=False, placeholder="Enter text and press Enter",container=False)
|
|
|
1399 |
with gr.Row():
|
1400 |
clear_button_text = gr.Button(value="Clear Text", interactive=True)
|
1401 |
submit_button_text = gr.Button(value="Send", interactive=True, variant="primary")
|
|
|
1507 |
with gr.Column():
|
1508 |
result = gr.Gallery(
|
1509 |
label="Result"
|
1510 |
+
height='auto',
|
1511 |
+
columns=4
|
1512 |
# columns=4,
|
1513 |
# rows=2,
|
1514 |
# show_label=False,
|
|
|
1518 |
# preview=True,
|
1519 |
# show_share_button=True,
|
1520 |
# show_download_button=True
|
1521 |
+
)
|
1522 |
|
1523 |
|
1524 |
|