Update app.py
Browse files
app.py
CHANGED
@@ -528,6 +528,26 @@ h3 {
|
|
528 |
text-rendering: optimizeLegibility;
|
529 |
}
|
530 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
531 |
|
532 |
# Demo arayüzüne CSS'i ekleyin
|
533 |
demo = gr.ChatInterface(
|
|
|
528 |
text-rendering: optimizeLegibility;
|
529 |
}
|
530 |
"""
|
531 |
+
/* JavaScript ile placeholder eklemek için */
|
532 |
+
</style>
|
533 |
+
<script>
|
534 |
+
document.addEventListener('DOMContentLoaded', function() {
|
535 |
+
// Textbox'u bul
|
536 |
+
setTimeout(function() {
|
537 |
+
const textareas = document.querySelectorAll('textarea');
|
538 |
+
textareas.forEach(textarea => {
|
539 |
+
textarea.placeholder = "Sorunuzu buraya yazın... (örn: Madone SL 6 stokta var mı?)";
|
540 |
+
|
541 |
+
// Placeholder stillemesi
|
542 |
+
textarea.style.fontStyle = "italic";
|
543 |
+
textarea.style.color = "#999";
|
544 |
+
});
|
545 |
+
}, 1000); // Sayfa yüklendiğinde biraz bekleyerek elementlerin oluşmasını sağla
|
546 |
+
});
|
547 |
+
</script>
|
548 |
+
<style>
|
549 |
+
"""
|
550 |
+
|
551 |
|
552 |
# Demo arayüzüne CSS'i ekleyin
|
553 |
demo = gr.ChatInterface(
|