Spaces:
Runtime error
Runtime error
EmicoBinsfinder
commited on
Commit
•
fd71939
1
Parent(s):
6e07fef
Update app.py
Browse files
app.py
CHANGED
@@ -14,17 +14,26 @@ def bot(history):
|
|
14 |
return history
|
15 |
|
16 |
with gr.Blocks() as demo:
|
|
|
17 |
chatbot = gr.Chatbot([], elem_id="chatbot").style(height=750)
|
18 |
|
19 |
-
with gr.
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
placeholder="Enter text and press enter, or upload an image",
|
24 |
-
).style(container=False)
|
25 |
-
with gr.Column(scale=0.15, min_width=0):
|
26 |
-
btn = gr.UploadButton("📁", file_types=["image", "video", "audio"])
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
txt.submit(add_text, [chatbot, txt], [chatbot, txt]).then(
|
29 |
bot, chatbot, chatbot
|
30 |
)
|
|
|
14 |
return history
|
15 |
|
16 |
with gr.Blocks() as demo:
|
17 |
+
|
18 |
chatbot = gr.Chatbot([], elem_id="chatbot").style(height=750)
|
19 |
|
20 |
+
with gr.Tab("ClaimedChat"):
|
21 |
+
text_input = gr.Textbox()
|
22 |
+
text_output = gr.Textbox()
|
23 |
+
text_button = gr.Button("Flip")
|
|
|
|
|
|
|
|
|
24 |
|
25 |
+
with gr.Row():
|
26 |
+
with gr.Column(scale=0.85):
|
27 |
+
txt = gr.Textbox(
|
28 |
+
show_label=False,
|
29 |
+
placeholder="Enter text and press enter, or upload an image",
|
30 |
+
).style(container=False)
|
31 |
+
|
32 |
+
with gr.Tab("ClaimedChat"):
|
33 |
+
with gr.Column(scale=1, min_width=600):
|
34 |
+
text1 = gr.Textbox(label="prompt 1")
|
35 |
+
text2 = gr.Textbox(label="prompt 2")
|
36 |
+
|
37 |
txt.submit(add_text, [chatbot, txt], [chatbot, txt]).then(
|
38 |
bot, chatbot, chatbot
|
39 |
)
|