Update pages/Resume_Roast.py
Browse files- pages/Resume_Roast.py +4 -2
pages/Resume_Roast.py
CHANGED
|
@@ -5,6 +5,7 @@ from llama_index.embeddings.gemini import GeminiEmbedding
|
|
| 5 |
from llama_index.llms.gemini import Gemini
|
| 6 |
from llama_index.core import Document
|
| 7 |
import google.generativeai as genai
|
|
|
|
| 8 |
|
| 9 |
# Set up Google API key
|
| 10 |
import os
|
|
@@ -40,12 +41,13 @@ def generate_feedback(index, resume_text):
|
|
| 40 |
return response.response
|
| 41 |
|
| 42 |
# Streamlit app
|
|
|
|
| 43 |
def main():
|
| 44 |
st.title("Resume Roaster")
|
| 45 |
st.write("Upload a resume, and let our AI roast it!")
|
| 46 |
-
|
| 47 |
# File uploader
|
| 48 |
-
|
| 49 |
|
| 50 |
if uploaded_file is not None:
|
| 51 |
# Read file contents
|
|
|
|
| 5 |
from llama_index.llms.gemini import Gemini
|
| 6 |
from llama_index.core import Document
|
| 7 |
import google.generativeai as genai
|
| 8 |
+
import streamlit_analytics2 as streamlit_analytics
|
| 9 |
|
| 10 |
# Set up Google API key
|
| 11 |
import os
|
|
|
|
| 41 |
return response.response
|
| 42 |
|
| 43 |
# Streamlit app
|
| 44 |
+
|
| 45 |
def main():
|
| 46 |
st.title("Resume Roaster")
|
| 47 |
st.write("Upload a resume, and let our AI roast it!")
|
| 48 |
+
with streamlit_analytics.track():
|
| 49 |
# File uploader
|
| 50 |
+
uploaded_file = st.file_uploader("Choose a resume file", type=["txt", "pdf"])
|
| 51 |
|
| 52 |
if uploaded_file is not None:
|
| 53 |
# Read file contents
|