Spaces:
Sleeping
Sleeping
Update pages/Lifecycle of Machine Learning.py
Browse files
pages/Lifecycle of Machine Learning.py
CHANGED
@@ -216,6 +216,10 @@ image.show()
|
|
216 |
- Dimensionality Reduction and Feature Extraction
|
217 |
"""
|
218 |
)
|
|
|
|
|
|
|
|
|
219 |
|
220 |
elif format_selected == "VIDEO":
|
221 |
|
@@ -274,6 +278,10 @@ cap = cv2.VideoCapture(video_path)
|
|
274 |
- Control Frame Rate and Prevent Skipping
|
275 |
"""
|
276 |
)
|
|
|
|
|
|
|
|
|
277 |
elif format_selected == "AUDIO":
|
278 |
|
279 |
st.subheader("AUDIO Data Format")
|
@@ -331,6 +339,10 @@ y, sr = librosa.load(audio_path, sr=None) # sr=None to preserve the original sa
|
|
331 |
- Encoding or File Corruption Issues: Ensure proper encoding and re-encode files using tools like ffmpeg if necessary.
|
332 |
"""
|
333 |
)
|
|
|
|
|
|
|
|
|
334 |
|
335 |
elif data_type == "Semi-Structured":
|
336 |
|
@@ -405,6 +417,10 @@ with open('data.json', 'r') as file:
|
|
405 |
- Consistent Structure: Ensure consistent data structure when creating JSON files, or write code to handle missing or extra fields gracefully.
|
406 |
"""
|
407 |
)
|
|
|
|
|
|
|
|
|
408 |
|
409 |
elif format_selected == "XML":
|
410 |
|
@@ -466,4 +482,8 @@ pd.read_xml("Data_path")
|
|
466 |
|
467 |
"""
|
468 |
)
|
|
|
|
|
|
|
|
|
469 |
|
|
|
216 |
- Dimensionality Reduction and Feature Extraction
|
217 |
"""
|
218 |
)
|
219 |
+
# Button to open Jupyter Notebook or PDF
|
220 |
+
if st.button("Open IMAGE Documentation"):
|
221 |
+
st.write("Download the [documentation notebook](path/to/image_notebook.ipynb) or [PDF](path/to/image_documentation.pdf).")
|
222 |
+
|
223 |
|
224 |
elif format_selected == "VIDEO":
|
225 |
|
|
|
278 |
- Control Frame Rate and Prevent Skipping
|
279 |
"""
|
280 |
)
|
281 |
+
# Button to open Jupyter Notebook or PDF
|
282 |
+
if st.button("Open VIDEOS Documentation"):
|
283 |
+
st.write("Download the [documentation notebook](path/to/videos_notebook.ipynb) or [PDF](path/to/videos_documentation.pdf).")
|
284 |
+
|
285 |
elif format_selected == "AUDIO":
|
286 |
|
287 |
st.subheader("AUDIO Data Format")
|
|
|
339 |
- Encoding or File Corruption Issues: Ensure proper encoding and re-encode files using tools like ffmpeg if necessary.
|
340 |
"""
|
341 |
)
|
342 |
+
# Button to open Jupyter Notebook or PDF
|
343 |
+
if st.button("Open AUDIO Documentation"):
|
344 |
+
st.write("Download the [documentation notebook](path/to/audio_notebook.ipynb) or [PDF](path/to/audio_documentation.pdf).")
|
345 |
+
|
346 |
|
347 |
elif data_type == "Semi-Structured":
|
348 |
|
|
|
417 |
- Consistent Structure: Ensure consistent data structure when creating JSON files, or write code to handle missing or extra fields gracefully.
|
418 |
"""
|
419 |
)
|
420 |
+
# Button to open Jupyter Notebook or PDF
|
421 |
+
if st.button("Open JSON Documentation"):
|
422 |
+
st.write("Download the [documentation notebook](path/to/JSON_notebook.ipynb) or [PDF](path/to/JSON_documentation.pdf).")
|
423 |
+
|
424 |
|
425 |
elif format_selected == "XML":
|
426 |
|
|
|
482 |
|
483 |
"""
|
484 |
)
|
485 |
+
# Button to open Jupyter Notebook or PDF
|
486 |
+
if st.button("Open XML Documentation"):
|
487 |
+
st.write("Download the [documentation notebook](path/to/XML_notebook.ipynb) or [PDF](path/to/XML_documentation.pdf).")
|
488 |
+
|
489 |
|