Spaces:
Running
on
Zero
Running
on
Zero
xieli
commited on
Commit
Β·
d1df209
1
Parent(s):
efe05ae
feat: optimize ui
Browse files
app.py
CHANGED
|
@@ -265,10 +265,6 @@ class EditxTab:
|
|
| 265 |
self.logger.info("Starting audio editing process")
|
| 266 |
|
| 267 |
# Input validation
|
| 268 |
-
if not prompt_text_input or prompt_text_input.strip() == "":
|
| 269 |
-
error_msg = "[Error] Uploaded text cannot be empty."
|
| 270 |
-
self.logger.error(error_msg)
|
| 271 |
-
return [{"role": "user", "content": error_msg}], state
|
| 272 |
if not prompt_audio_input:
|
| 273 |
error_msg = "[Error] Uploaded audio cannot be empty."
|
| 274 |
self.logger.error(error_msg)
|
|
@@ -424,9 +420,9 @@ class EditxTab:
|
|
| 424 |
|
| 425 |
def launch_demo(args, editx_tab):
|
| 426 |
"""Launch the gradio demo"""
|
| 427 |
-
with gr.Blocks(title="ποΈ Step-Audio-EditX") as demo:
|
| 428 |
gr.Markdown("## ποΈ Step-Audio-EditX")
|
| 429 |
-
gr.Markdown("Audio
|
| 430 |
|
| 431 |
# Register components
|
| 432 |
editx_tab.register_components()
|
|
|
|
| 265 |
self.logger.info("Starting audio editing process")
|
| 266 |
|
| 267 |
# Input validation
|
|
|
|
|
|
|
|
|
|
|
|
|
| 268 |
if not prompt_audio_input:
|
| 269 |
error_msg = "[Error] Uploaded audio cannot be empty."
|
| 270 |
self.logger.error(error_msg)
|
|
|
|
| 420 |
|
| 421 |
def launch_demo(args, editx_tab):
|
| 422 |
"""Launch the gradio demo"""
|
| 423 |
+
with gr.Blocks(theme=gr.themes.Soft(), title="ποΈ Step-Audio-EditX") as demo:
|
| 424 |
gr.Markdown("## ποΈ Step-Audio-EditX")
|
| 425 |
+
gr.Markdown("Audio Editing and Zero-Shot Cloning using Step-Audio_EditX")
|
| 426 |
|
| 427 |
# Register components
|
| 428 |
editx_tab.register_components()
|