Spaces:
Runtime error
Runtime error
aladhefafalquran Claude Sonnet 4.5 commited on
Commit ·
60c97aa
1
Parent(s): 56c8918
Remove unsupported 'info' parameter from Gradio components
Browse files- Removed 'info' parameter from gr.Dropdown and gr.Audio
- This parameter is not supported in Gradio 5.9.1
- Fixes TypeError: Audio.__init__() got an unexpected keyword argument 'info'
Model loads successfully! App should now start.
Generated with Claude Code
https://claude.com/claude-code
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -94,17 +94,15 @@ with gr.Blocks(title="Arabic XTTS Voice Cloner", theme=gr.themes.Soft()) as demo
|
|
| 94 |
default_speaker = gr.Dropdown(
|
| 95 |
choices=list(DEFAULT_SPEAKERS.keys()),
|
| 96 |
label="المتحدثون الافتراضيون",
|
| 97 |
-
value=list(DEFAULT_SPEAKERS.keys())[0]
|
| 98 |
-
info="اختر صوتاً جاهزاً من القائمة"
|
| 99 |
)
|
| 100 |
-
|
| 101 |
gr.Markdown("**أو**")
|
| 102 |
-
|
| 103 |
# رفع الملف الصوتي (اختياري)
|
| 104 |
custom_audio = gr.Audio(
|
| 105 |
label="ارفع صوتك الخاص (اختياري)",
|
| 106 |
-
type="filepath"
|
| 107 |
-
info="إذا قمت برفع ملف، سيتم استخدامه بدلاً من المتحدث الافتراضي"
|
| 108 |
)
|
| 109 |
|
| 110 |
btn = gr.Button("🚀 توليد الصوت الآن", variant="primary", size="lg")
|
|
|
|
| 94 |
default_speaker = gr.Dropdown(
|
| 95 |
choices=list(DEFAULT_SPEAKERS.keys()),
|
| 96 |
label="المتحدثون الافتراضيون",
|
| 97 |
+
value=list(DEFAULT_SPEAKERS.keys())[0]
|
|
|
|
| 98 |
)
|
| 99 |
+
|
| 100 |
gr.Markdown("**أو**")
|
| 101 |
+
|
| 102 |
# رفع الملف الصوتي (اختياري)
|
| 103 |
custom_audio = gr.Audio(
|
| 104 |
label="ارفع صوتك الخاص (اختياري)",
|
| 105 |
+
type="filepath"
|
|
|
|
| 106 |
)
|
| 107 |
|
| 108 |
btn = gr.Button("🚀 توليد الصوت الآن", variant="primary", size="lg")
|