shivam701171 commited on
Commit
1df5f45
·
verified ·
1 Parent(s): 12026e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -16
app.py CHANGED
@@ -26,6 +26,25 @@ from pathlib import Path
26
  import time
27
  import logging
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  # Check if running on Hugging Face Spaces
30
  IS_HF_SPACE = os.getenv("SPACE_ID") is not None
31
 
@@ -103,22 +122,6 @@ os.makedirs(HF_CONFIG["data_dir"], exist_ok=True)
103
  # ===============================================================================
104
  # STREAMLIT CONFIGURATION FOR HUGGING FACE
105
  # ===============================================================================
106
-
107
- st.set_page_config(
108
- page_title="AI Invoice Processing System",
109
- page_icon="📄",
110
- layout="wide",
111
- initial_sidebar_state="expanded",
112
- menu_items={
113
- 'Get Help': 'https://huggingface.co/spaces/your-space/help',
114
- 'Report a bug': 'https://huggingface.co/spaces/your-space/issues',
115
- 'About': """
116
- # AI Invoice Processing System
117
- Built for Hugging Face Spaces with AI-powered extraction and semantic search.
118
- """
119
- }
120
- )
121
-
122
  # ===============================================================================
123
  # SIMPLIFIED DATA STRUCTURES FOR HF
124
  # ===============================================================================
 
26
  import time
27
  import logging
28
 
29
+ # This should be the FIRST Streamlit command
30
+ st.set_page_config(
31
+ page_title="AI Invoice Processing System",
32
+ page_icon="📄",
33
+ layout="wide",
34
+ initial_sidebar_state="expanded",
35
+ menu_items={
36
+ 'Get Help': 'https://huggingface.co/spaces',
37
+ 'Report a bug': 'https://huggingface.co/spaces',
38
+ 'About': """
39
+ # AI Invoice Processing System
40
+ Built for Hugging Face Spaces with AI-powered extraction and semantic search.
41
+ """
42
+ }
43
+ )
44
+
45
+
46
+
47
+
48
  # Check if running on Hugging Face Spaces
49
  IS_HF_SPACE = os.getenv("SPACE_ID") is not None
50
 
 
122
  # ===============================================================================
123
  # STREAMLIT CONFIGURATION FOR HUGGING FACE
124
  # ===============================================================================
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  # ===============================================================================
126
  # SIMPLIFIED DATA STRUCTURES FOR HF
127
  # ===============================================================================