File size: 903 Bytes
d88ff3b 574481e d88ff3b 574481e 7a66365 574481e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import asyncio
import sys
import streamlit as st
import os
from pathlib import Path
try:
asyncio.get_running_loop()
except RuntimeError:
asyncio.set_event_loop(asyncio.new_event_loop())
sys.path.append(str(Path(__file__).parent))
def main():
st.set_page_config(
page_title="Audio Emotion Recognition System",
page_icon="🎵",
layout="wide"
)
st.sidebar.title("Navigation Bar")
st.sidebar.markdown("<small>(Chatbot is not available now, update soon...😉)</small>", unsafe_allow_html=True)
app_mode = st.sidebar.radio("Go to", ["Emotion Analyzer", "Chatbot"])
if app_mode == "Emotion Analyzer":
from emotion_analyzer import show # 直接导入模块
show()
elif app_mode == "Chatbot":
st.write("Chatbot is not available now, update soon...😉")
if __name__ == "__main__":
main() |