Fix ProjectService param and Gradio 6 Audio component
- Fix ProjectService: db -> database - Remove show_download_button from gr.Audio (Gradio 6.x) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2
main.py
2
main.py
@@ -71,7 +71,7 @@ async def initialize_services():
|
|||||||
)
|
)
|
||||||
|
|
||||||
project_service = ProjectService(
|
project_service = ProjectService(
|
||||||
db=db,
|
database=db,
|
||||||
output_dir=settings.output_dir,
|
output_dir=settings.output_dir,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -24,12 +24,11 @@ def create_audio_player(
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
with gr.Group():
|
with gr.Group():
|
||||||
# Audio player
|
# Audio player - Gradio 6.x removed show_download_button
|
||||||
audio_output = gr.Audio(
|
audio_output = gr.Audio(
|
||||||
label=label,
|
label=label,
|
||||||
type="filepath",
|
type="filepath",
|
||||||
interactive=False,
|
interactive=False,
|
||||||
show_download_button=show_download,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Waveform visualization
|
# Waveform visualization
|
||||||
|
|||||||
Reference in New Issue
Block a user