am commited on
Commit
53eb065
·
1 Parent(s): 6251e95
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -112,7 +112,7 @@ def model_inference(
112
  with gr.Blocks() as demo:
113
 
114
  send_btn = gr.Button("Send", variant="primary", render=False)
115
- textbox = gr.Textbox(show_label=False, placeholder="Enter your text here and press ENTER", render=False, submit_btn="Send", stop_btn=True)
116
  chatbot = gr.Chatbot(type="messages", label="AI", render_markdown=True, sanitize_html=False, allow_tags=True, height=800, container=False)
117
 
118
  with gr.Row():
@@ -130,7 +130,6 @@ with gr.Blocks() as demo:
130
  ["example_images/376.jpg", "Examine the chest X-ray."],
131
  ],
132
  inputs=[image_input, textbox],
133
- # elem_id=css_no_header
134
  )
135
 
136
  with gr.Column(scale=7):
@@ -152,7 +151,7 @@ with gr.Blocks() as demo:
152
  queue=False,
153
  show_api=False,
154
  )
155
-
156
  # Clear chat history when a new image is uploaded via the image input
157
  image_input.upload(
158
  lambda: ([], [], [], None, DEFAULT_PROMPT),
 
112
  with gr.Blocks() as demo:
113
 
114
  send_btn = gr.Button("Send", variant="primary", render=False)
115
+ textbox = gr.Textbox(show_label=False, placeholder="Enter your text here and press ENTER", render=False, submit_btn="Send")
116
  chatbot = gr.Chatbot(type="messages", label="AI", render_markdown=True, sanitize_html=False, allow_tags=True, height=800, container=False)
117
 
118
  with gr.Row():
 
130
  ["example_images/376.jpg", "Examine the chest X-ray."],
131
  ],
132
  inputs=[image_input, textbox],
 
133
  )
134
 
135
  with gr.Column(scale=7):
 
151
  queue=False,
152
  show_api=False,
153
  )
154
+
155
  # Clear chat history when a new image is uploaded via the image input
156
  image_input.upload(
157
  lambda: ([], [], [], None, DEFAULT_PROMPT),