Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,8 +80,8 @@ def supertonic_tts(text: str, speed: float, voice: str, steps: int, silence_dura
|
|
| 80 |
except Exception as e:
|
| 81 |
raise gr.Error(f"Error during speech generation: {str(e)}")
|
| 82 |
|
| 83 |
-
with gr.Blocks(
|
| 84 |
-
gr.HTML("<h1 style='text-align: center;'>Supertonic-TTS</h1><p style='text-align: center;'>Powered by Supertone/
|
| 85 |
|
| 86 |
# We need to initialize to get voices, but we don't want to block startup too long if download is needed.
|
| 87 |
# For now, let's try to get voices, if empty, user might need to click generate to trigger download/init first?
|
|
@@ -164,4 +164,4 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme') as demo:
|
|
| 164 |
)
|
| 165 |
|
| 166 |
if __name__ == "__main__":
|
| 167 |
-
demo.queue().launch()
|
|
|
|
| 80 |
except Exception as e:
|
| 81 |
raise gr.Error(f"Error during speech generation: {str(e)}")
|
| 82 |
|
| 83 |
+
with gr.Blocks() as demo:
|
| 84 |
+
gr.HTML("<h1 style='text-align: center;'>Supertonic-TTS</h1><p style='text-align: center;'>Powered by Supertone/upertonic on CPU</p>")
|
| 85 |
|
| 86 |
# We need to initialize to get voices, but we don't want to block startup too long if download is needed.
|
| 87 |
# For now, let's try to get voices, if empty, user might need to click generate to trigger download/init first?
|
|
|
|
| 164 |
)
|
| 165 |
|
| 166 |
if __name__ == "__main__":
|
| 167 |
+
demo.queue().launch(theme='Nymbo/Nymbo_Theme')
|