Spaces:
Sleeping
Sleeping
yzexclusive
commited on
Commit
•
c746709
1
Parent(s):
d84369b
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,14 @@ with gr.Blocks(css="#chatbot{height:300px} .overflow-y-auto{height:500px}") as d
|
|
57 |
state = gr.State([])
|
58 |
|
59 |
with gr.Row():
|
60 |
-
txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
|
62 |
txt.submit(answer, [txt, state], [chatbot, state])
|
63 |
|
|
|
57 |
state = gr.State([])
|
58 |
|
59 |
with gr.Row():
|
60 |
+
# txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter").style(container=False)
|
61 |
+
with gr.Column(scale=0.85):
|
62 |
+
txt = gr.Textbox(
|
63 |
+
show_label=False,
|
64 |
+
placeholder="Enter text and press enter, or upload an image",
|
65 |
+
).style(container=False)
|
66 |
+
with gr.Column(scale=0.15, min_width=0):
|
67 |
+
btn = gr.UploadButton("📁", file_types=["image", "video", "audio"])
|
68 |
|
69 |
txt.submit(answer, [txt, state], [chatbot, state])
|
70 |
|