-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
32 lines (31 loc) · 945 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
#os.popen("pip install -r requirements.txt")
import streamlit as st
import requests
import json
from test import *
from numerology import main as numer
from datetime import datetime
# Streamlit UI
st.title("Dream11 Cricket")
st.write(datetime.now())
st.write(":red[Warning!Local time and time of the website may vary, verify the match dates carefully]")
contents=matches()
#file=open("leagues.json","r",encoding="utf-8")
#contents=json.load(file)
#file.close()
choices=contents
#print(choices)
choice=st.selectbox("Match",list(choices.keys()))
print(choice)
print()
match_url=choices[choice]
st.write(f"Selected match: {choice}")
st.write(f"Match URL: {match_url}")
types_of_analysis=["numerology"]
choice=st.selectbox("Analysis Type",types_of_analysis)
if st.button("Start"):
st.write(f"Selected analysis type: {choice}")
print(choice)
if choice=="numerology":
numer(match_url,st)