EmicoBinsfinder commited on
Commit
e5a45fc
1 Parent(s): 5b4db95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -15,8 +15,6 @@ def bot(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()
@@ -46,12 +44,20 @@ with gr.Blocks() as demo:
46
  text1 = gr.Textbox(label="prompt 1",
47
  placeholder='Type in your idea here!')
48
  text2 = gr.Textbox(label="Output")
49
-
 
 
 
 
 
 
 
 
 
 
50
  txt.submit(add_text, [chatbot, txt], [chatbot, txt]).then(
51
  bot, chatbot, chatbot
52
  )
53
 
54
- chatbot = gr.Chatbot([], elem_id="chatbot").style(height=500)
55
-
56
 
57
  demo.launch()
 
15
 
16
  with gr.Blocks() as demo:
17
 
 
 
18
  with gr.Tab("ClaimedChat"):
19
  text_input = gr.Textbox()
20
  text_output = gr.Textbox()
 
44
  text1 = gr.Textbox(label="prompt 1",
45
  placeholder='Type in your idea here!')
46
  text2 = gr.Textbox(label="Output")
47
+
48
+ chatbot = gr.Chatbot([], elem_id="Claimed Assistant").style(height=500)
49
+ with gr.Row():
50
+ with gr.Column(scale=0.85):
51
+ txt = gr.Textbox(
52
+ show_label=False,
53
+ placeholder="Enter text and press enter, or upload an image",
54
+ ).style(container=False)
55
+ with gr.Column(scale=0.15, min_width=0):
56
+ btn = gr.UploadButton("📁", file_types=["image", "video", "audio"])
57
+
58
  txt.submit(add_text, [chatbot, txt], [chatbot, txt]).then(
59
  bot, chatbot, chatbot
60
  )
61
 
 
 
62
 
63
  demo.launch()