Update app.py
Browse files
app.py
CHANGED
@@ -160,9 +160,9 @@ with st.sidebar:
|
|
160 |
|
161 |
Instructions = """
|
162 |
- **Step 1**: Upload your PDF file.
|
163 |
-
- **Step 2**: Review the processed
|
164 |
-
- **Step 3**:
|
165 |
-
- **Step 4**: Review topic distribution and frequency.
|
166 |
- **Step 5**: Review bar charts of topics.
|
167 |
- **Step 6**: Download the processed data as a CSV file.
|
168 |
"""
|
@@ -171,7 +171,7 @@ with st.sidebar:
|
|
171 |
# Load SmolDocling model (mlx_vlm version)
|
172 |
@st.cache_resource
|
173 |
def load_smol_docling():
|
174 |
-
model_path = "ds4sd/SmolDocling-256M-preview
|
175 |
model, processor = load(model_path)
|
176 |
config = load_config(model_path)
|
177 |
return model, processor, config
|
|
|
160 |
|
161 |
Instructions = """
|
162 |
- **Step 1**: Upload your PDF file.
|
163 |
+
- **Step 2**: Review the processed text.
|
164 |
+
- **Step 3**: Add your topics and descriptions of interest.
|
165 |
+
- **Step 4**: Review the extracted excerpts and classifications, and topic distribution and frequency.
|
166 |
- **Step 5**: Review bar charts of topics.
|
167 |
- **Step 6**: Download the processed data as a CSV file.
|
168 |
"""
|
|
|
171 |
# Load SmolDocling model (mlx_vlm version)
|
172 |
@st.cache_resource
|
173 |
def load_smol_docling():
|
174 |
+
model_path = "ds4sd/SmolDocling-256M-preview"
|
175 |
model, processor = load(model_path)
|
176 |
config = load_config(model_path)
|
177 |
return model, processor, config
|