capradeepgujaran commited on
Commit
74cd746
β€’
1 Parent(s): 417694d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -8
app.py CHANGED
@@ -186,6 +186,11 @@ custom_css = """
186
  height: 400px;
187
  overflow-y: auto;
188
  }
 
 
 
 
 
189
  """
190
 
191
  # Create the Gradio interface
@@ -207,14 +212,14 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as iface:
207
  analyze_button = gr.Button("πŸ” Analyze Image", elem_classes="analyze-button")
208
  with gr.Column(scale=2):
209
  chatbot = gr.Chatbot(label="Analysis Results and Chat", elem_classes="chatbot")
210
-
211
- with gr.Row():
212
- msg = gr.Textbox(
213
- label="Ask a question about the image",
214
- placeholder="Type your question here and press Enter...",
215
- show_label=False,
216
- )
217
- clear = gr.Button("πŸ—‘οΈ Clear Chat", elem_classes="clear-button")
218
 
219
  analyze_button.click(
220
  analyze_construction_image,
 
186
  height: 400px;
187
  overflow-y: auto;
188
  }
189
+ .chat-input {
190
+ border: 1px solid #bdc3c7;
191
+ border-radius: 5px;
192
+ padding: 0.5rem;
193
+ }
194
  """
195
 
196
  # Create the Gradio interface
 
212
  analyze_button = gr.Button("πŸ” Analyze Image", elem_classes="analyze-button")
213
  with gr.Column(scale=2):
214
  chatbot = gr.Chatbot(label="Analysis Results and Chat", elem_classes="chatbot")
215
+ with gr.Row():
216
+ msg = gr.Textbox(
217
+ label="Ask a question about the image",
218
+ placeholder="Type your question here and press Enter...",
219
+ show_label=False,
220
+ elem_classes="chat-input"
221
+ )
222
+ clear = gr.Button("πŸ—‘οΈ Clear Chat", elem_classes="clear-button")
223
 
224
  analyze_button.click(
225
  analyze_construction_image,