Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def get_pdf_text(pdf_docs):
|
|
| 28 |
for para in doc_reader.paragraphs:
|
| 29 |
text += para.text + "\n"
|
| 30 |
except ImportError:
|
| 31 |
-
|
| 32 |
return text
|
| 33 |
|
| 34 |
# Define input prompts
|
|
@@ -82,10 +82,10 @@ with st.sidebar:
|
|
| 82 |
api_key = st.text_input("Enter your Google API Key", type="password")
|
| 83 |
selected_model = st.selectbox("Select Gemini Model", model_options)
|
| 84 |
uploaded_files = st.file_uploader("Upload Your Resume in .PDF or .DOCX format 📂", type=["pdf", "docx"], accept_multiple_files=True)
|
| 85 |
-
if uploaded_files
|
| 86 |
-
st.error("Please upload a PDF or DOCX file to proceed.")
|
| 87 |
-
else:
|
| 88 |
st.success("Files Uploaded Successfully.")
|
|
|
|
|
|
|
| 89 |
|
| 90 |
# Set the API key for genai
|
| 91 |
if api_key:
|
|
|
|
| 28 |
for para in doc_reader.paragraphs:
|
| 29 |
text += para.text + "\n"
|
| 30 |
except ImportError:
|
| 31 |
+
pass
|
| 32 |
return text
|
| 33 |
|
| 34 |
# Define input prompts
|
|
|
|
| 82 |
api_key = st.text_input("Enter your Google API Key", type="password")
|
| 83 |
selected_model = st.selectbox("Select Gemini Model", model_options)
|
| 84 |
uploaded_files = st.file_uploader("Upload Your Resume in .PDF or .DOCX format 📂", type=["pdf", "docx"], accept_multiple_files=True)
|
| 85 |
+
if uploaded_files:
|
|
|
|
|
|
|
| 86 |
st.success("Files Uploaded Successfully.")
|
| 87 |
+
else:
|
| 88 |
+
st.error("Please upload a PDF or DOCX file to proceed.")
|
| 89 |
|
| 90 |
# Set the API key for genai
|
| 91 |
if api_key:
|