JaphetHernandez commited on
Commit
904cf6c
verified
1 Parent(s): 70ed6f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -17,12 +17,17 @@ tokenizer.pad_token = tokenizer.eos_token
17
 
18
  # Upload CSV file
19
  uploaded_file = st.file_uploader("Upload a CSV file", type=["csv"])
20
- #print("Query: ", query)
21
 
22
  df = pd.DataFrame(uploaded_file)
23
  job_titles = df['job_title'].tolist()
24
  query="aspiring human resources specialist"
25
 
 
 
 
 
 
 
26
  # Texto de entrada para la generaci贸n
27
  input_text = (
28
  f"You are an AI assistant. You have a list of job titles and a search query.\n"
 
17
 
18
  # Upload CSV file
19
  uploaded_file = st.file_uploader("Upload a CSV file", type=["csv"])
 
20
 
21
  df = pd.DataFrame(uploaded_file)
22
  job_titles = df['job_title'].tolist()
23
  query="aspiring human resources specialist"
24
 
25
+ if uploaded_file is not None:
26
+ df = pd.read_csv(uploaded_file)
27
+ st.write(df.head())
28
+
29
+ st.write("Query:", query)
30
+
31
  # Texto de entrada para la generaci贸n
32
  input_text = (
33
  f"You are an AI assistant. You have a list of job titles and a search query.\n"