Update pages/Resume_Roast.py
Browse files- pages/Resume_Roast.py +2 -3
pages/Resume_Roast.py
CHANGED
@@ -5,7 +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 |
-
import streamlit_analytics2 as streamlit_analytics
|
9 |
|
10 |
# Set up Google API key
|
11 |
import os
|
@@ -45,9 +45,8 @@ def generate_feedback(index, resume_text):
|
|
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 |
-
|
51 |
|
52 |
if uploaded_file is not None:
|
53 |
# 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
|
|
|
45 |
def main():
|
46 |
st.title("Resume Roaster")
|
47 |
st.write("Upload a resume, and let our AI roast it!")
|
|
|
48 |
# File uploader
|
49 |
+
uploaded_file = st.file_uploader("Choose a resume file", type=["txt", "pdf"])
|
50 |
|
51 |
if uploaded_file is not None:
|
52 |
# Read file contents
|