Update app.py
Browse files
app.py
CHANGED
@@ -22,14 +22,15 @@ st_lottie(
|
|
22 |
|
23 |
)
|
24 |
|
25 |
-
st.write("**WARNING: GPT-3.5 takes very long time to process. So, please be patient. Other LLMs (GPT-4 and Llama-3) take moderate amount of time. We suggest entering a small number (5-10) for testing purpose. Rule of thumb: GPT-3.5 takes 1.5 minute to process each entry. GPT-4 and Llama-3 takes 40 sec to process each entry**")
|
26 |
radio_btn1=st.radio("**Choose the newspaper you want to collect news from**",options=("Prothom Alo","The Daily Star"))
|
27 |
radio_btn2=st.radio("**Choose an LLM model**",options=("GPT-4 (High Cost)","Llama3 (Free)","GPT-3.5 (Medium Cost + Long Waiting Time)"))
|
28 |
|
29 |
number = st.number_input("**Enter the number of accident news you want the LLM to go through (Maximum 50)**",min_value=0,max_value=50)
|
|
|
30 |
|
31 |
if st.button("Generate Dataset"):
|
32 |
-
|
33 |
|
34 |
if radio_btn1=="Prothom Alo":
|
35 |
import Prothom_alo_fully_scraped
|
|
|
22 |
|
23 |
)
|
24 |
|
25 |
+
st.write("**WARNING: GPT-3.5 takes very long time to process. So, please be patient. Other LLMs (GPT-4 and Llama-3) take moderate amount of time. We suggest entering a small number (5-10) for testing purpose. Rule of thumb: GPT-3.5 takes 1.5 minute to process each entry. GPT-4 and Llama-3 each takes 40 sec to process each entry**")
|
26 |
radio_btn1=st.radio("**Choose the newspaper you want to collect news from**",options=("Prothom Alo","The Daily Star"))
|
27 |
radio_btn2=st.radio("**Choose an LLM model**",options=("GPT-4 (High Cost)","Llama3 (Free)","GPT-3.5 (Medium Cost + Long Waiting Time)"))
|
28 |
|
29 |
number = st.number_input("**Enter the number of accident news you want the LLM to go through (Maximum 50)**",min_value=0,max_value=50)
|
30 |
+
url = "https://drive.google.com/file/d/1lfIciJSOpK6e2YpuKg1efqomB3SgYN1C/view?usp=sharing"
|
31 |
|
32 |
if st.button("Generate Dataset"):
|
33 |
+
st.write("**Please wait while the dataset is being generated. Note that, 'General' accident incidents will be excluded from the dataset. To know more, please read this paper:** [link](%s)" % url)
|
34 |
|
35 |
if radio_btn1=="Prothom Alo":
|
36 |
import Prothom_alo_fully_scraped
|