Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,9 @@ st.title(':blue[_SnapCode_]')
|
|
8 |
st.markdown("_Extract code blocks out of Screenshots and Images_")
|
9 |
|
10 |
with st.spinner('Code vs Natuaral language - Classification model is loading'):
|
11 |
-
|
12 |
-
|
|
|
13 |
|
14 |
st.success('Model loaded')
|
15 |
|
|
|
8 |
st.markdown("_Extract code blocks out of Screenshots and Images_")
|
9 |
|
10 |
with st.spinner('Code vs Natuaral language - Classification model is loading'):
|
11 |
+
model_id = "vishnun/codenlbert-tiny"
|
12 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
13 |
+
model = AutoModelForSequenceClassification.from_pretrained(model_id)
|
14 |
|
15 |
st.success('Model loaded')
|
16 |
|