Spaces:
Running
on
Zero
Running
on
Zero
Update description_search_ui.py
Browse files- description_search_ui.py +7 -26
description_search_ui.py
CHANGED
@@ -281,7 +281,7 @@ def create_description_search_tab() -> gr.Column:
|
|
281 |
# 描述輸入區
|
282 |
description_input = gr.Textbox(
|
283 |
label="",
|
284 |
-
placeholder="Example: I'm looking for a medium-sized, friendly dog that's good with kids
|
285 |
lines=5
|
286 |
)
|
287 |
|
@@ -292,29 +292,10 @@ def create_description_search_tab() -> gr.Column:
|
|
292 |
size="lg"
|
293 |
)
|
294 |
|
295 |
-
#
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
border-top: 4px solid #3498db; border-radius: 50%; margin-bottom: 1rem;
|
301 |
-
animation: spin 1s linear infinite;">
|
302 |
-
</div>
|
303 |
-
<style>
|
304 |
-
@keyframes spin {
|
305 |
-
0% { transform: rotate(0deg); }
|
306 |
-
100% { transform: rotate(360deg); }
|
307 |
-
}
|
308 |
-
</style>
|
309 |
-
<p style="color: #666; margin: 10px 0;">Finding your perfect match...</p>
|
310 |
-
<p style="color: #888; font-size: 0.9em;">This usually takes 15-20 seconds</p>
|
311 |
-
<div style="color: #888; font-size: 0.9em; margin-top: 10px;">
|
312 |
-
<p>✓ Analyzing preferences</p>
|
313 |
-
<p>✓ Calculating compatibility</p>
|
314 |
-
<p>⋯ Finding best matches</p>
|
315 |
-
</div>
|
316 |
-
</div>
|
317 |
-
""")
|
318 |
-
result_output = gr.HTML(label="Breed Recommendations")
|
319 |
|
320 |
-
return description_input, search_button, result_output,
|
|
|
281 |
# 描述輸入區
|
282 |
description_input = gr.Textbox(
|
283 |
label="",
|
284 |
+
placeholder="Example: I'm looking for a medium-sized, friendly dog that's good with kids...",
|
285 |
lines=5
|
286 |
)
|
287 |
|
|
|
292 |
size="lg"
|
293 |
)
|
294 |
|
295 |
+
# 加載狀態提示
|
296 |
+
processing_message = gr.HTML(value="<div style='text-align: center; padding: 20px; color: #666;'><p><b>Finding your perfect match...</b></p><p>Please wait 15-20 seconds while we analyze your preferences.</p></div>", visible=False)
|
297 |
+
|
298 |
+
# 結果顯示區域
|
299 |
+
result_output = gr.HTML(label="Breed Recommendations")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
|
301 |
+
return description_input, search_button, result_output, processing_message
|