rb757 commited on
Commit
5176e8f
·
1 Parent(s): a594b91

Add Streamlit app for patentability score prediction

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -33,13 +33,13 @@ print("Validation set columns:", val_df.columns.tolist())
33
  st.title("Milestone Patent 🐨")
34
  st.write("Select a patent application to evaluate its patentability.")
35
 
36
- # Dropdown for application filing numbers
37
- application_numbers = train_df['application_number'].unique()
38
- selected_application = st.selectbox("Select Application Filing Number", application_numbers)
39
 
40
  # Retrieve abstract and claims
41
- if selected_application:
42
- patent_info = train_df[train_df['application_number'] == selected_application].iloc[0]
43
  abstract = patent_info['abstract']
44
  claims = patent_info['claims']
45
 
 
33
  st.title("Milestone Patent 🐨")
34
  st.write("Select a patent application to evaluate its patentability.")
35
 
36
+ # Dropdown for patent numbers
37
+ patent_numbers = train_df['patent_number'].unique()
38
+ selected_patent = st.selectbox("Select Patent Number", patent_numbers)
39
 
40
  # Retrieve abstract and claims
41
+ if selected_patent:
42
+ patent_info = train_df[train_df['patent_number'] == selected_patent].iloc[0]
43
  abstract = patent_info['abstract']
44
  claims = patent_info['claims']
45