Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def text_to_speech(text, language="en"):
|
|
| 20 |
except Exception as e:
|
| 21 |
return f"Error: {str(e)}", None
|
| 22 |
|
| 23 |
-
# Define the HTML
|
| 24 |
html_content = """
|
| 25 |
<!DOCTYPE html>
|
| 26 |
<html lang="en">
|
|
@@ -203,11 +203,7 @@ interface = gr.Interface(
|
|
| 203 |
title="AI Text-to-Speech Web App",
|
| 204 |
description="Convert text into natural-sounding speech using AI. Select a language, type text, and download the audio!",
|
| 205 |
allow_flagging="never",
|
| 206 |
-
theme="compact",
|
| 207 |
-
layout="vertical",
|
| 208 |
live=True,
|
| 209 |
-
# Display the HTML content
|
| 210 |
-
css=html_content,
|
| 211 |
)
|
| 212 |
|
| 213 |
# Launch the interface
|
|
|
|
| 20 |
except Exception as e:
|
| 21 |
return f"Error: {str(e)}", None
|
| 22 |
|
| 23 |
+
# Define the HTML content with embedded JavaScript and CSS
|
| 24 |
html_content = """
|
| 25 |
<!DOCTYPE html>
|
| 26 |
<html lang="en">
|
|
|
|
| 203 |
title="AI Text-to-Speech Web App",
|
| 204 |
description="Convert text into natural-sounding speech using AI. Select a language, type text, and download the audio!",
|
| 205 |
allow_flagging="never",
|
|
|
|
|
|
|
| 206 |
live=True,
|
|
|
|
|
|
|
| 207 |
)
|
| 208 |
|
| 209 |
# Launch the interface
|