hblim commited on
Commit
9bf6e5a
·
1 Parent(s): 9506787

consolidated app.py entry point

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +0 -11
  3. frontend/app.py +2 -2
README.md CHANGED
@@ -5,7 +5,7 @@ colorFrom: "indigo"
5
  colorTo: "red"
6
  sdk: "streamlit"
7
  sdk_version: "1.44.1"
8
- app_file: "app.py"
9
  pinned: false
10
  ---
11
 
 
5
  colorTo: "red"
6
  sdk: "streamlit"
7
  sdk_version: "1.44.1"
8
+ app_file: "frontend/app.py"
9
  pinned: false
10
  ---
11
 
app.py DELETED
@@ -1,11 +0,0 @@
1
- """Entry point for the Hugging Face Spaces application.
2
-
3
- This tiny wrapper simply imports the Streamlit app defined in
4
- `frontend/app.py`. Importing that module is enough to launch the UI
5
- because the Streamlit code executes at import time.
6
- """
7
-
8
- # Importing `frontend.app` is sufficient to start the Streamlit app.
9
- # The variable name is unused, but keeping the assignment suppresses
10
- # linters complaining about unused imports.
11
- import frontend.app # noqa: F401 # pragma: no cover
 
 
 
 
 
 
 
 
 
 
 
 
frontend/app.py CHANGED
@@ -6,13 +6,13 @@ import altair as alt
6
  from datetime import date, timedelta, datetime
7
 
8
  # Import from local modules
9
- from .data_utils import (
10
  load_summary,
11
  load_day,
12
  get_subreddit_colors,
13
  get_last_updated_hf_caption,
14
  )
15
- from .text_analysis import keywords_for_df
16
 
17
  st.set_page_config(page_title="Reddit Sentiment Trends", layout="wide")
18
  st.title("Reddit Sentiment Monitor")
 
6
  from datetime import date, timedelta, datetime
7
 
8
  # Import from local modules
9
+ from data_utils import (
10
  load_summary,
11
  load_day,
12
  get_subreddit_colors,
13
  get_last_updated_hf_caption,
14
  )
15
+ from text_analysis import keywords_for_df
16
 
17
  st.set_page_config(page_title="Reddit Sentiment Trends", layout="wide")
18
  st.title("Reddit Sentiment Monitor")