Spaces:
Runtime error
Runtime error
Commit
·
0007576
1
Parent(s):
ed07f6d
edited app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,6 @@ st.title("Gibberish Detector")
|
|
11 |
|
12 |
user_input = str(st.text_input("Enter some words", "pasghetti"))
|
13 |
|
14 |
-
st.write("Input was: ", str(user_input))
|
15 |
-
|
16 |
classifier = pipeline("sentiment-analysis", model=mod, tokenizer=TKR)
|
17 |
# result = classifier(["This is a sample text made by Sean Ramirez.", "This is another sample text."]) # leftover from initial testing
|
18 |
|
@@ -20,4 +18,4 @@ if user_input is not None:
|
|
20 |
predicts = pipeline("sentiment-analysis", model=mod, tokenizer=TKR)
|
21 |
|
22 |
st.markdown("## Probabilities")
|
23 |
-
st.
|
|
|
11 |
|
12 |
user_input = str(st.text_input("Enter some words", "pasghetti"))
|
13 |
|
|
|
|
|
14 |
classifier = pipeline("sentiment-analysis", model=mod, tokenizer=TKR)
|
15 |
# result = classifier(["This is a sample text made by Sean Ramirez.", "This is another sample text."]) # leftover from initial testing
|
16 |
|
|
|
18 |
predicts = pipeline("sentiment-analysis", model=mod, tokenizer=TKR)
|
19 |
|
20 |
st.markdown("## Probabilities")
|
21 |
+
st.markdown(str(predicts))
|