Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import torch
|
2 |
-
import tokenizers
|
3 |
|
4 |
import pandas as pd
|
5 |
import streamlit as st
|
@@ -38,7 +37,7 @@ def predict(outputs):
|
|
38 |
for prob, cat in sorted(zip(probs, cats), reverse=True):
|
39 |
if first:
|
40 |
if cat == "Computer Science":
|
41 |
-
st.write("Today everything is connected with Computer Science"
|
42 |
first = False
|
43 |
if top < 95:
|
44 |
percent = prob * 100
|
@@ -58,7 +57,7 @@ title = st.text_area("*Enter title (required)", height=20)
|
|
58 |
|
59 |
st.markdown("### Abstract")
|
60 |
|
61 |
-
abstract = st.text_area("Enter abstract", height=200)
|
62 |
|
63 |
if not title:
|
64 |
st.warning("Please fill in required fields")
|
|
|
1 |
import torch
|
|
|
2 |
|
3 |
import pandas as pd
|
4 |
import streamlit as st
|
|
|
37 |
for prob, cat in sorted(zip(probs, cats), reverse=True):
|
38 |
if first:
|
39 |
if cat == "Computer Science":
|
40 |
+
st.write("Today everything is connected with Computer Science")
|
41 |
first = False
|
42 |
if top < 95:
|
43 |
percent = prob * 100
|
|
|
57 |
|
58 |
st.markdown("### Abstract")
|
59 |
|
60 |
+
abstract = st.text_area(" Enter abstract", height=200)
|
61 |
|
62 |
if not title:
|
63 |
st.warning("Please fill in required fields")
|