Spaces:
Sleeping
Sleeping
Akis Giannoukos
commited on
Commit
·
ed333ca
1
Parent(s):
cd2c769
Play Intro button size
Browse files
app.py
CHANGED
|
@@ -725,6 +725,12 @@ def create_demo():
|
|
| 725 |
width: auto !important; min-width: 80px !important; max-width: 100px !important;
|
| 726 |
padding: 8px 16px !important;
|
| 727 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 728 |
'''
|
| 729 |
) as demo:
|
| 730 |
# Main view
|
|
@@ -737,7 +743,7 @@ def create_demo():
|
|
| 737 |
Tap on 'Record' to start speaking, then tap on 'Stop' to stop recording.
|
| 738 |
"""
|
| 739 |
)
|
| 740 |
-
intro_play_btn = gr.Button("▶️ Play Intro", variant="secondary", size="sm")
|
| 741 |
# Microphone component styled as central bubble (tap to record/stop)
|
| 742 |
audio_main = gr.Microphone(type="filepath", label=None, elem_id="voice-bubble", show_label=False)
|
| 743 |
# Hidden text input placeholder for pipeline compatibility
|
|
|
|
| 725 |
width: auto !important; min-width: 80px !important; max-width: 100px !important;
|
| 726 |
padding: 8px 16px !important;
|
| 727 |
}
|
| 728 |
+
/* Play Intro button positioned under Settings */
|
| 729 |
+
#intro-btn {
|
| 730 |
+
position: absolute; top: 60px; right: 16px; z-index: 10;
|
| 731 |
+
width: auto !important; min-width: 100px !important; max-width: 120px !important;
|
| 732 |
+
padding: 8px 16px !important;
|
| 733 |
+
}
|
| 734 |
'''
|
| 735 |
) as demo:
|
| 736 |
# Main view
|
|
|
|
| 743 |
Tap on 'Record' to start speaking, then tap on 'Stop' to stop recording.
|
| 744 |
"""
|
| 745 |
)
|
| 746 |
+
intro_play_btn = gr.Button("▶️ Play Intro", elem_id="intro-btn", variant="secondary", size="sm")
|
| 747 |
# Microphone component styled as central bubble (tap to record/stop)
|
| 748 |
audio_main = gr.Microphone(type="filepath", label=None, elem_id="voice-bubble", show_label=False)
|
| 749 |
# Hidden text input placeholder for pipeline compatibility
|