Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,6 @@ for uploaded_file in uploaded_files:
|
|
45 |
|
46 |
|
47 |
|
48 |
-
result = result1.reset_index()
|
49 |
-
st.dataframe(result)
|
50 |
|
51 |
model = GLiNER.from_pretrained("urchade/gliner_base")
|
52 |
labels = ["person", "country", "organization", "time", "role"]
|
@@ -60,9 +58,13 @@ for uploaded_file in uploaded_files:
|
|
60 |
data = {"Text": text_data, **entity_dict}
|
61 |
st.dataframe(data)
|
62 |
|
|
|
|
|
|
|
|
|
63 |
|
64 |
if data is not None:
|
65 |
-
value_counts1 = data['
|
66 |
|
67 |
df1 = pd.DataFrame(value_counts1)
|
68 |
|
|
|
45 |
|
46 |
|
47 |
|
|
|
|
|
48 |
|
49 |
model = GLiNER.from_pretrained("urchade/gliner_base")
|
50 |
labels = ["person", "country", "organization", "time", "role"]
|
|
|
58 |
data = {"Text": text_data, **entity_dict}
|
59 |
st.dataframe(data)
|
60 |
|
61 |
+
|
62 |
+
result = data.reset_index()
|
63 |
+
st.dataframe(result)
|
64 |
+
|
65 |
|
66 |
if data is not None:
|
67 |
+
value_counts1 = data['person'].value_counts()
|
68 |
|
69 |
df1 = pd.DataFrame(value_counts1)
|
70 |
|