ppsingh commited on
Commit
aa61483
·
verified ·
1 Parent(s): f963dad

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -0
app.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ with st.sidebar:
4
+ # upload and example doc
5
+ choice = st.sidebar.radio(label = 'Select the Document',
6
+ help = 'You can upload the document \
7
+ or else you can try a example document',
8
+ options = ('Upload Document', 'Try Example'),
9
+ horizontal = True)
10
+ add_upload(choice)
11
+
12
+ # Create a list of options for the dropdown
13
+ model_options = ['Llama3.1-8B','Llama3.1-70B','Llama3.1-405B','Zephyr 7B β','Mistral-7B','Mixtral-8x7B']
14
+
15
+ # Dropdown selectbox: model
16
+ model_sel = st.selectbox('Select a model:', model_options)
17
+ model_sel_name = model_dict[model_sel]
18
+
19
+ st.session_state['model_sel_name'] = model_sel_name
20
+
21
+ with st.container():
22
+ st.markdown("<h2 style='text-align: center;'> Vulnerability Analysis 3.1 </h2>", unsafe_allow_html=True)
23
+ st.write(' ')