ThanaritKanjanametawat commited on
Commit
445e717
·
1 Parent(s): 22c6ac7

Fix demo pipeline

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,12 +6,12 @@ st.title('GPT Detection Demo')
6
 
7
  # Add 4 options for 4 models
8
  option = st.sidebar.selectbox(
9
- 'Which model do you want to use?',
10
- ('GPT-2', 'GPT-3', 'GPT-Neo', 'GPT-J')
11
  )
12
 
13
 
14
- pipe = pipeline('text-generation', model=option)
15
  text = st.text_area('Enter text here', 'Type here')
16
 
17
  if st.button('Generate'):
 
6
 
7
  # Add 4 options for 4 models
8
  option = st.sidebar.selectbox(
9
+ 'Which pipeline do you want to use?',
10
+ ('sentiment-analysis'),
11
  )
12
 
13
 
14
+ pipe = pipeline(option)
15
  text = st.text_area('Enter text here', 'Type here')
16
 
17
  if st.button('Generate'):