capradeepgujaran
commited on
Commit
β’
74cd746
1
Parent(s):
417694d
Update app.py
Browse files
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 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
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,
|