Spaces:
Runtime error
Runtime error
added the pipeline package
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import altair as alt
|
4 |
-
|
5 |
from PIL import Image
|
6 |
#!pip install -U sentence-transformers
|
7 |
from sentence_transformers import SentenceTransformer, util
|
@@ -27,30 +27,26 @@ st.title (" Nashville Analytics Summit Conference Helper")# (" Your top 3 Import
|
|
27 |
|
28 |
st.markdown("**Problem**🤔:")
|
29 |
st.markdown("Since its inception in 2013, Nashville Analytics Summit has seen a growth of over 488%. The Summit prides its itself as the fastest growing locally grown tech events in the south region. With an increasing number of participants and dozens of talks covering a myriad of topics, there is a need to tailor participants needs to their interests")
|
30 |
-
|
31 |
st.markdown("**Solution**💡:" )
|
32 |
st.markdown("Develop an application in which users can input the description of areas of interest and app returns the top three Sessions matching the description requested.")
|
33 |
-
|
34 |
st.markdown("** Approach**🔑:")
|
35 |
st.markdown("* For the approach, I used a transformer model, multi-qa-MiniLM-L6-cos-v1, that uses sentence similarity to match the description of the event and the input description.")
|
36 |
st.markdown("* The dataset used is Nashville Analytics Summit descriptions of the presentations, which include the Unique ID, Name of presenter, Description of presentation, Activity Code, Start Time, End Time, Location Name")
|
37 |
|
38 |
-
st.markdown("* Given a {claim, evidence} pair, determine whether the climate claim is supported or refuted (or neither) by the evidence")
|
39 |
-
|
40 |
st.markdown("---")
|
41 |
|
42 |
-
st.markdown("
|
43 |
|
44 |
# section 1: the context, problem; how to address
|
45 |
st.markdown("### Problem")
|
46 |
st.markdown("With the growth of the Nashville Analytics Summit every year, there have been an increase in the number participants, the number of talks/topics have exponentially increased over time covering a myriad of current issues and developments. This has made it challenging for the participants to easily navigate the event and attend the sessions of interest before reading through the sessions descriptions. Struggling finding the Session that Matches your personal interests? Transformers to the rescue!!!.")
|
47 |
|
48 |
dificult_reading = Image.open('dificult_reading.png')
|
49 |
-
st.image(dificult_reading, caption='Reading sessions descriptions.
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
|
|
|
54 |
# section 2: how can transformers help?
|
55 |
st.markdown("### How can Transformers Help?💡")
|
56 |
|
@@ -63,7 +59,7 @@ st.markdown("**Sentence Similarity**")
|
|
63 |
#st.markdown("* This is simply an extenstion of the textual entailment task")
|
64 |
#st.markdown("* Given two sentences, sent1 and sent2, determine the relationship: entail, contradict, neutral")
|
65 |
#st.markdown("* With fact verification, we can think of the sentences as claim and evidence and labels as support, refute, or not enough information to refute or support.")
|
66 |
-
|
67 |
# section 4: The process
|
68 |
# this is the pipeline in my notes (u are here highlight)
|
69 |
st.markdown("### The Process 🔑")
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import altair as alt
|
4 |
+
from transformers import pipeline
|
5 |
from PIL import Image
|
6 |
#!pip install -U sentence-transformers
|
7 |
from sentence_transformers import SentenceTransformer, util
|
|
|
27 |
|
28 |
st.markdown("**Problem**🤔:")
|
29 |
st.markdown("Since its inception in 2013, Nashville Analytics Summit has seen a growth of over 488%. The Summit prides its itself as the fastest growing locally grown tech events in the south region. With an increasing number of participants and dozens of talks covering a myriad of topics, there is a need to tailor participants needs to their interests")
|
30 |
+
st.markdown("---")
|
31 |
st.markdown("**Solution**💡:" )
|
32 |
st.markdown("Develop an application in which users can input the description of areas of interest and app returns the top three Sessions matching the description requested.")
|
33 |
+
st.markdown("---")
|
34 |
st.markdown("** Approach**🔑:")
|
35 |
st.markdown("* For the approach, I used a transformer model, multi-qa-MiniLM-L6-cos-v1, that uses sentence similarity to match the description of the event and the input description.")
|
36 |
st.markdown("* The dataset used is Nashville Analytics Summit descriptions of the presentations, which include the Unique ID, Name of presenter, Description of presentation, Activity Code, Start Time, End Time, Location Name")
|
37 |
|
|
|
|
|
38 |
st.markdown("---")
|
39 |
|
40 |
+
#st.markdown("### The Details")
|
41 |
|
42 |
# section 1: the context, problem; how to address
|
43 |
st.markdown("### Problem")
|
44 |
st.markdown("With the growth of the Nashville Analytics Summit every year, there have been an increase in the number participants, the number of talks/topics have exponentially increased over time covering a myriad of current issues and developments. This has made it challenging for the participants to easily navigate the event and attend the sessions of interest before reading through the sessions descriptions. Struggling finding the Session that Matches your personal interests? Transformers to the rescue!!!.")
|
45 |
|
46 |
dificult_reading = Image.open('dificult_reading.png')
|
47 |
+
st.image(dificult_reading, caption='Reading sessions descriptions.')
|
|
|
|
|
|
|
48 |
|
49 |
+
st.markdown("---")
|
50 |
# section 2: how can transformers help?
|
51 |
st.markdown("### How can Transformers Help?💡")
|
52 |
|
|
|
59 |
#st.markdown("* This is simply an extenstion of the textual entailment task")
|
60 |
#st.markdown("* Given two sentences, sent1 and sent2, determine the relationship: entail, contradict, neutral")
|
61 |
#st.markdown("* With fact verification, we can think of the sentences as claim and evidence and labels as support, refute, or not enough information to refute or support.")
|
62 |
+
st.markdown("---")
|
63 |
# section 4: The process
|
64 |
# this is the pipeline in my notes (u are here highlight)
|
65 |
st.markdown("### The Process 🔑")
|