Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -906,35 +906,26 @@ custom_css = """
|
|
| 906 |
margin-bottom: 8px;
|
| 907 |
}
|
| 908 |
"""
|
| 909 |
-
|
| 910 |
# Create the Gradio interface with proper output handling
|
| 911 |
with gr.Blocks(title="Affective Virtual Environments - Chunked Processing", css=custom_css) as interface:
|
| 912 |
gr.Markdown("# The Emotional Machine")
|
| 913 |
gr.Markdown(
|
| 914 |
"""
|
| 915 |
-
**The Emotional Machine** is a digital media project that generates virtual environments
|
| 916 |
-
using multimodal speech emotion recognition as its main mode of interaction.
|
| 917 |
-
|
| 918 |
-
---
|
| 919 |
|
| 920 |
### How to interact
|
| 921 |
-
|
| 922 |
1. Record your voice or upload an audio file.
|
| 923 |
2. Define the length to chunk your sample.
|
| 924 |
3. Use the checkbox if you want to generate audio for each chunk.
|
| 925 |
4. Generate your Affective Virtual Environment and wait for the results.
|
| 926 |
5. Download the HTML file.
|
| 927 |
6. Open your creation using any web browser.
|
| 928 |
-
|
| 929 |
---
|
| 930 |
-
|
| 931 |
**Learn more:**
|
| 932 |
• For more information about the project, visit: [www.emotional-machines.com](https://www.emotional-machines.com)
|
| 933 |
"""
|
| 934 |
)
|
| 935 |
|
| 936 |
-
|
| 937 |
-
|
| 938 |
|
| 939 |
with gr.Row():
|
| 940 |
with gr.Column(scale=2):
|
|
@@ -1015,13 +1006,7 @@ using multimodal speech emotion recognition as its main mode of interaction.
|
|
| 1015 |
|
| 1016 |
|
| 1017 |
|
| 1018 |
-
""")
|
| 1019 |
-
|
| 1020 |
-
|
| 1021 |
-
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
|
| 1025 |
|
| 1026 |
# Enhanced download button
|
| 1027 |
viewer_html_output = gr.File(
|
|
|
|
| 906 |
margin-bottom: 8px;
|
| 907 |
}
|
| 908 |
"""
|
|
|
|
| 909 |
# Create the Gradio interface with proper output handling
|
| 910 |
with gr.Blocks(title="Affective Virtual Environments - Chunked Processing", css=custom_css) as interface:
|
| 911 |
gr.Markdown("# The Emotional Machine")
|
| 912 |
gr.Markdown(
|
| 913 |
"""
|
| 914 |
+
**The Emotional Machine** is a digital media project that generates virtual environments using multimodal speech emotion recognition as its main mode of interaction.
|
|
|
|
|
|
|
|
|
|
| 915 |
|
| 916 |
### How to interact
|
|
|
|
| 917 |
1. Record your voice or upload an audio file.
|
| 918 |
2. Define the length to chunk your sample.
|
| 919 |
3. Use the checkbox if you want to generate audio for each chunk.
|
| 920 |
4. Generate your Affective Virtual Environment and wait for the results.
|
| 921 |
5. Download the HTML file.
|
| 922 |
6. Open your creation using any web browser.
|
|
|
|
| 923 |
---
|
|
|
|
| 924 |
**Learn more:**
|
| 925 |
• For more information about the project, visit: [www.emotional-machines.com](https://www.emotional-machines.com)
|
| 926 |
"""
|
| 927 |
)
|
| 928 |
|
|
|
|
|
|
|
| 929 |
|
| 930 |
with gr.Row():
|
| 931 |
with gr.Column(scale=2):
|
|
|
|
| 1006 |
|
| 1007 |
|
| 1008 |
|
| 1009 |
+
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1010 |
|
| 1011 |
# Enhanced download button
|
| 1012 |
viewer_html_output = gr.File(
|