Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,14 @@ import json
|
|
6 |
import os
|
7 |
import plotly.express as px
|
8 |
import altair as alt
|
9 |
-
from utils import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
# Set page config
|
12 |
st.set_page_config(
|
@@ -19,7 +26,6 @@ st.set_page_config(
|
|
19 |
with st.spinner("Initializing the application... Please wait while we load the models."):
|
20 |
# Initialize components
|
21 |
try:
|
22 |
-
from utils import NewsExtractor, SentimentAnalyzer, TextSummarizer, TextToSpeechConverter
|
23 |
st.success("Application initialized successfully!")
|
24 |
except Exception as e:
|
25 |
st.error(f"Error initializing application: {str(e)}")
|
|
|
6 |
import os
|
7 |
import plotly.express as px
|
8 |
import altair as alt
|
9 |
+
from utils import (
|
10 |
+
analyze_company_data,
|
11 |
+
TextToSpeechConverter,
|
12 |
+
get_translator,
|
13 |
+
NewsExtractor,
|
14 |
+
SentimentAnalyzer,
|
15 |
+
TextSummarizer
|
16 |
+
)
|
17 |
|
18 |
# Set page config
|
19 |
st.set_page_config(
|
|
|
26 |
with st.spinner("Initializing the application... Please wait while we load the models."):
|
27 |
# Initialize components
|
28 |
try:
|
|
|
29 |
st.success("Application initialized successfully!")
|
30 |
except Exception as e:
|
31 |
st.error(f"Error initializing application: {str(e)}")
|