Spaces:
Sleeping
Sleeping
ThanaritKanjanametawat
commited on
Commit
·
445e717
1
Parent(s):
22c6ac7
Fix demo pipeline
Browse files
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
|
10 |
-
('
|
11 |
)
|
12 |
|
13 |
|
14 |
-
pipe = pipeline(
|
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'):
|