snaramirez872 commited on
Commit
990785d
·
1 Parent(s): 0007576

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -21
app.py DELETED
@@ -1,21 +0,0 @@
1
- import streamlit as st
2
- from transformers import pipeline
3
- from transformers import AutoTokenizer as AT, AutoModelForSequenceClassification as AFSC
4
-
5
- modName = "madhurjindal/autonlp-Gibberish-Detector-492513457" # Gibberish Detection Model from HuggingFace
6
-
7
- mod = AFSC.from_pretrained(modName)
8
- TKR = AT.from_pretrained(modName)
9
-
10
- st.title("Gibberish Detector")
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
-
17
- if user_input is not None:
18
- predicts = pipeline("sentiment-analysis", model=mod, tokenizer=TKR)
19
-
20
- st.markdown("## Probabilities")
21
- st.markdown(str(predicts))