Download app.py from Nassira/json: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/Nassira/json/resolve/main/app.py
- Command line
-
hf download hf://spaces/Nassira/json/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Nassira/json/resolve/main/app.py
423 Bytes
| import streamlit as st | |
| import json | |
| from cv_analyzer import analyze_cv | |
| def main(): | |
| st.title('CV Completeness Analyzer') | |
| uploaded_file = st.file_uploader("Upload a PDF file", type="pdf") | |
| if uploaded_file is not None: | |
| pdf_bytes = uploaded_file.read() | |
| result = analyze_cv(pdf_bytes) | |
| # Display JSON result | |
| st.json(result) | |
| if __name__ == '__main__': | |
| main() |