heymenn commited on
Commit
582b9f2
1 Parent(s): 40b1456

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -117
app.py CHANGED
@@ -16,123 +16,6 @@ from code_df_custom import *
16
  ## BUGS =
17
  from split_files_to_excel import *
18
 
19
-
20
- # Categories
21
- categories = [
22
- {
23
- "topic": "Confidentiality and Privacy Protection",
24
- "description": "This topic covers the protection of confidentiality, privacy, and integrity in security systems. It also includes authentication and authorization processes.",
25
- "experts": ["Mireille"]
26
- },
27
- {
28
- "topic": "Distributed Trust and End-User Trust Models",
29
- "description": "This topic focuses on distributed trust models and how end-users establish trust in secure systems.",
30
- "experts": ["Mireille", "Khawla"]
31
- },
32
- {
33
- "topic": "Secure Element and Key Provisioning",
34
- "description": "This topic involves the secure element in systems and the process of key provisioning.",
35
- "experts": ["Mireille"]
36
- },
37
- {
38
- "topic": "Residential Gateway Security",
39
- "description": "This topic covers the security aspects of Residential Gateways.",
40
- "experts": ["Mireille"]
41
- },
42
- {
43
- "topic": "Standalone Non-Public Network (SNPN) Inter-Connection and Cybersecurity",
44
- "description": "This topic focuses on the inter-connection of Standalone Non-Public Networks and related cyber-security topics.",
45
- "experts": ["Khawla"]
46
- },
47
- {
48
- "topic": "Distributed Ledger and Blockchain in SNPN",
49
- "description": "This topic covers the use of distributed ledger technology and blockchain in securing Standalone Non-Public Networks.",
50
- "experts": ["Khawla"]
51
- },
52
- {
53
- "topic": "Distributed Networks and Communication",
54
- "description": "This topic involves distributed networks such as mesh networks, ad-hoc networks, and multi-hop networks, and their cyber-security aspects.",
55
- "experts": ["Guillaume"]
56
- },
57
- {
58
- "topic": "Swarm of Drones and Unmanned Aerial Vehicles Network Infrastructure",
59
- "description": "This topic covers the network infrastructure deployed by Swarm of Drones and Unmanned Aerial Vehicles.",
60
- "experts": ["Guillaume"]
61
- },
62
- {
63
- "topic": "USIM and Over-the-Air Services",
64
- "description": "This topic involves USIM and related over-the-air services such as Steering of Roaming, roaming services, network selection, and UE configuration.",
65
- "experts": ["Vincent"]
66
- },
67
- {
68
- "topic": "Eco-Design and Societal Impact of Technology",
69
- "description": "This topic covers eco-design concepts, including energy saving, energy efficiency, carbon emissions, and the societal impact of technology.",
70
- "experts": ["Pierre"]
71
- },
72
- {
73
- "topic": "Service Requirements of New Services",
74
- "description": "This topic involves defining service requirements for new services, detecting low signals of new trends and technologies, and assessing their impact on USIM services or over-the-air services.",
75
- "experts": ["Ly-Thanh"]
76
- },
77
- {
78
- "topic": "Satellite and Non Terrestrial Networks",
79
- "description": "This topic covers satellite networks, Non Terrestrial Networks, Private Networks, IoT, Inter Satellite communication, and Radio Access Network.",
80
- "experts": ["Nicolas"]
81
- },
82
- {
83
- "topic": "Public Safety and Emergency Communication",
84
- "description": "This topic involves Public Safety Communication, Military Communication, Emergency Calls, Emergency Services, Disaster Communication Access, and other related areas.",
85
- "experts": ["Dorin"]
86
- },
87
- {
88
- "topic": "Identifying the Human User of a Subscription",
89
- "description": "This topic involves methods and processes for identifying the human user associated with a subscription.",
90
- "experts": ["Kumar"] # Les experts pour cette catégorie ne sont pas spécifiés
91
- },
92
- {
93
- "topic": "Authentication and Authorization of Users and Restrictions on Users",
94
- "description": "This topic covers authentication and authorization processes, as well as restrictions imposed on users.",
95
- "experts": ["Kumar"] # Les experts pour cette catégorie ne sont pas spécifiés
96
- },
97
- {
98
- "topic": "Exposure of User Identity Profile Information",
99
- "description": "This topic involves the exposure of user identity profile information and its security implications.",
100
- "experts": ["Kumar"] # Les experts pour cette catégorie ne sont pas spécifiés
101
- },
102
- {
103
- "topic": "Identifying non-3GPP Devices Connecting behind a UE or 5G-RG",
104
- "description": "This topic involves identifying non-3GPP devices connecting behind a UE (User Equipment) or 5G-RG (5G Residential Gateway).",
105
- "experts": ["Kumar"] # Les experts pour cette catégorie ne sont pas spécifiés
106
- }
107
- ]
108
-
109
- df_cate = pd.DataFrame(categories)
110
-
111
- # def update_label(label1):
112
- # return gr.update(choices=list(df.columns))
113
-
114
- ### Functions needed for Split Files
115
-
116
- def functionCall(fi_input, dropdown, choice, chunk_size):
117
- if choice == "Intelligent split":
118
- return split_in_df(fi_input)
119
- elif choice == "Non intelligent split":
120
- return non_intelligent_split(fi_input, chunk_size)
121
- else:
122
- return split_by_keywords(fi_input,dropdown)
123
-
124
- def change_textbox(dropdown,radio):
125
- if len(dropdown) == 0 :
126
- dropdown = ["introduction", "objective", "summary", "conclusion"]
127
- if radio == "Intelligent split by keywords":
128
- return gr.Dropdown(dropdown, multiselect=True, visible=True, allow_custom_value=True), gr.Number(visible=False)
129
- elif radio == "Non intelligent split":
130
- return gr.Dropdown(dropdown, visible=False),gr.Number(label="Chunk size", value=1000, interactive=True, visible=True)
131
- else:
132
- return gr.Dropdown(dropdown, visible=False),gr.Number(visible=False)
133
-
134
- ### Split files end
135
-
136
  ### Functions needed for Classfication
137
 
138
  def addCategories(df,df_all):
 
16
  ## BUGS =
17
  from split_files_to_excel import *
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ### Functions needed for Classfication
20
 
21
  def addCategories(df,df_all):