1NEYRON1 commited on
Commit
1b01599
·
1 Parent(s): 16e46f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +137 -137
app.py CHANGED
@@ -1,144 +1,144 @@
1
  import streamlit as st
2
  from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
3
 
4
- id_to_cat = {0: 'Performance',
5
- 1: 'Molecular Networks',
6
- 2: 'Operating Systems',
7
- 3: 'High Energy Astrophysical Phenomena',
8
- 4: 'Computational Finance',
9
- 5: 'General Finance',
10
- 6: 'Astrophysics of Galaxies',
11
- 7: 'Portfolio Management',
12
- 8: 'Functional Analysis',
13
- 9: 'Quantitative Methods',
14
- 10: 'Mathematical Software',
15
- 11: 'Computation',
16
- 12: 'Chemical Physics',
17
- 13: 'Information Theory',
18
- 14: 'Classical Physics',
19
- 15: 'Subcellular Processes',
20
- 16: 'Medical Physics',
21
- 17: 'Differential Geometry',
22
- 18: 'Biomolecules',
23
- 19: 'Metric Geometry',
24
- 20: 'Cryptography and Security',
25
- 21: 'Instrumentation and Methods for Astrophysics',
26
- 22: 'General Mathematics',
27
- 23: 'Computational Complexity',
28
- 24: 'Soft Condensed Matter',
29
- 25: 'Analysis of PDEs',
30
- 26: 'Human-Computer Interaction',
31
- 27: 'Classical Analysis and ODEs',
32
- 28: 'Genomics',
33
- 29: 'Optimization and Control',
34
- 30: 'Applied Physics',
35
- 31: 'Computational Engineering, Finance, and Science',
36
- 32: 'Quantum Algebra',
37
- 33: 'Other Condensed Matter',
38
- 34: 'Category Theory',
39
- 35: 'Popular Physics',
40
- 36: 'General Topology',
41
- 37: 'Algebraic Topology',
42
- 38: 'Trading and Market Microstructure',
43
- 39: 'Numerical Analysis',
44
- 40: 'Applications',
45
- 41: 'Group Theory',
46
- 42: 'Cosmology and Nongalactic Astrophysics',
47
- 43: 'Mathematical Physics',
48
- 44: 'Econometrics',
49
- 45: 'Systems and Control',
50
- 46: 'Graphics',
51
- 47: 'Data Structures and Algorithms',
52
- 48: 'Operator Algebras',
53
- 49: 'Number Theory',
54
- 50: 'Robotics',
55
- 51: 'Nuclear Theory',
56
  52: 'Neural and Evolutionary Computing',
57
- 53: 'Multimedia',
58
- 54: 'Information Retrieval',
59
- 55: 'Image and Video Processing',
60
- 56: 'Rings and Algebras',
61
- 57: 'Instrumentation and Detectors',
62
- 58: 'Social and Information Networks',
63
- 59: 'High Energy Physics - Lattice',
64
- 60: 'Emerging Technologies',
65
- 61: 'Strongly Correlated Electrons',
66
- 62: 'Representation Theory',
67
- 63: 'Space Physics',
68
- 64: 'Risk Management',
69
- 65: 'Disordered Systems and Neural Networks',
70
- 66: 'Databases',
71
- 67: 'Networking and Internet Architecture',
72
- 68: 'Computers and Society',
73
- 69: 'Hardware Architecture',
74
- 70: 'Chaotic Dynamics',
75
- 71: 'Mesoscale and Nanoscale Physics',
76
- 72: 'Computational Geometry',
77
- 73: 'Commutative Algebra',
78
- 74: 'Statistics Theory',
79
- 75: 'General Literature',
80
- 76: 'Physics and Society',
81
- 77: 'Geophysics',
82
- 78: 'Economics',
83
- 79: 'Quantum Physics',
84
- 80: 'Symbolic Computation',
85
- 81: 'Computational Physics',
86
- 82: 'Sound',
87
- 83: 'Multiagent Systems',
88
- 84: 'Signal Processing',
89
- 85: 'Adaptation and Self-Organizing Systems',
90
- 86: 'Other Computer Science',
91
- 87: 'Other Quantitative Biology',
92
- 88: 'Formal Languages and Automata Theory',
93
- 89: 'Populations and Evolution',
94
- 90: 'Spectral Theory',
95
- 91: 'Pattern Formation and Solitons',
96
- 92: 'Methodology',
97
- 93: 'Biological Physics',
98
- 94: 'General Physics',
99
- 95: 'Logic in Computer Science',
100
- 96: 'Complex Variables',
101
- 97: 'Optics',
102
- 98: 'Discrete Mathematics',
103
- 99: 'History and Overview',
104
- 100: 'Programming Languages',
105
- 101: 'Audio and Speech Processing',
106
- 102: 'Algebraic Geometry',
107
- 103: 'Neurons and Cognition',
108
- 104: 'High Energy Physics - Phenomenology',
109
- 105: 'History and Philosophy of Physics',
110
- 106: 'Earth and Planetary Astrophysics',
111
- 107: 'Pricing of Securities',
112
- 108: 'Distributed, Parallel, and Cluster Computing',
113
- 109: 'Tissues and Organs',
114
- 110: 'Cellular Automata and Lattice Gases',
115
- 111: 'Statistical Finance',
116
- 112: 'Materials Science',
117
- 113: 'High Energy Physics - Theory',
118
- 114: 'Digital Libraries',
119
- 115: 'Other Statistics',
120
- 116: 'Superconductivity',
121
- 117: 'Cell Behavior',
122
- 118: 'General Relativity and Quantum Cosmology',
123
- 119: 'Dynamical Systems',
124
- 120: 'Statistical Mechanics',
125
- 121: 'Fluid Dynamics',
126
- 122: 'Computer Science and Game Theory',
127
- 123: 'Logic',
128
- 124: 'Computer Vision and Pattern Recognition',
129
- 125: 'Solar and Stellar Astrophysics',
130
- 126: 'High Energy Physics - Experiment',
131
- 127: 'Software Engineering',
132
- 128: 'Combinatorics',
133
- 129: 'Data Analysis, Statistics and Probability',
134
- 130: 'Machine Learning',
135
- 131: 'Probability',
136
- 132: 'Atmospheric and Oceanic Physics',
137
- 133: 'Geometric Topology',
138
- 134: 'Computation and Language',
139
- 135: 'Quantum Gases',
140
- 136: 'Nuclear Experiment',
141
- 137: 'Artificial Intelligence'}
142
 
143
  # Загружаем модель (замените на вашу модель, если нужно)
144
  @st.cache_resource
 
1
  import streamlit as st
2
  from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
3
 
4
+ id_to_cat = {0: 'Cryptography and Security',
5
+ 1: 'Medical Physics',
6
+ 2: 'Audio and Speech Processing',
7
+ 3: 'Combinatorics',
8
+ 4: 'Information Theory',
9
+ 5: 'Quantum Physics',
10
+ 6: 'Nuclear Theory',
11
+ 7: 'Computers and Society',
12
+ 8: 'Pattern Formation and Solitons',
13
+ 9: 'General Finance',
14
+ 10: 'Multiagent Systems',
15
+ 11: 'Trading and Market Microstructure',
16
+ 12: 'Mesoscale and Nanoscale Physics',
17
+ 13: 'Instrumentation and Detectors',
18
+ 14: 'Emerging Technologies',
19
+ 15: 'Software Engineering',
20
+ 16: 'Computational Physics',
21
+ 17: 'Econometrics',
22
+ 18: 'Materials Science',
23
+ 19: 'Computer Vision and Pattern Recognition',
24
+ 20: 'Differential Geometry',
25
+ 21: 'General Literature',
26
+ 22: 'Computation and Language',
27
+ 23: 'Superconductivity',
28
+ 24: 'Risk Management',
29
+ 25: 'Other Condensed Matter',
30
+ 26: 'Other Quantitative Biology',
31
+ 27: 'High Energy Physics - Phenomenology',
32
+ 28: 'Analysis of PDEs',
33
+ 29: 'Earth and Planetary Astrophysics',
34
+ 30: 'Optics',
35
+ 31: 'Hardware Architecture',
36
+ 32: 'Optimization and Control',
37
+ 33: 'Methodology',
38
+ 34: 'Number Theory',
39
+ 35: 'General Topology',
40
+ 36: 'Populations and Evolution',
41
+ 37: 'Solar and Stellar Astrophysics',
42
+ 38: 'Distributed, Parallel, and Cluster Computing',
43
+ 39: 'Chaotic Dynamics',
44
+ 40: 'History and Philosophy of Physics',
45
+ 41: 'Computational Engineering, Finance, and Science',
46
+ 42: 'Discrete Mathematics',
47
+ 43: 'Statistical Mechanics',
48
+ 44: 'Operating Systems',
49
+ 45: 'Data Structures and Algorithms',
50
+ 46: 'Geophysics',
51
+ 47: 'Quantum Algebra',
52
+ 48: 's an alias for eess.SY. This section includes theoretical and experimental research covering all facets of automatic control systems. The section is focused on methods of control system analysis and design using tools of modeling, simulation and optimization. Specific areas of research include nonlinear, distributed, adaptive, stochastic and robust control in addition to hybrid and discrete event systems. Application areas include automotive and aerospace control systems, network control, biological systems, multiagent and cooperative control, robotics, reinforcement learning, sensor networks, control of cyber-physical and energy-related systems, and control of computing systems',
53
+ 49: 'Statistics Theory',
54
+ 50: 'High Energy Physics - Theory',
55
+ 51: 'Rings and Algebras',
56
  52: 'Neural and Evolutionary Computing',
57
+ 53: 'General Physics',
58
+ 54: 'Computational Geometry',
59
+ 55: 'Signal Processing',
60
+ 56: 'Computational Finance',
61
+ 57: 'History and Overview',
62
+ 58: 'Space Physics',
63
+ 59: 'Physics and Society',
64
+ 60: 'Cosmology and Nongalactic Astrophysics',
65
+ 61: 'Information Retrieval',
66
+ 62: 'Symbolic Computation',
67
+ 63: 'Statistical Finance',
68
+ 64: 'Image and Video Processing',
69
+ 65: 'Quantum Gases',
70
+ 66: 'Artificial Intelligence',
71
+ 67: 'Nuclear Experiment',
72
+ 68: 'General Mathematics',
73
+ 69: 'Complex Variables',
74
+ 70: 'Logic in Computer Science',
75
+ 71: 'Data Analysis, Statistics and Probability',
76
+ 72: 'Fluid Dynamics',
77
+ 73: 'Dynamical Systems',
78
+ 74: 'High Energy Astrophysical Phenomena',
79
+ 75: 'Programming Languages',
80
+ 76: 'Mathematical Physics',
81
+ 77: 'Logic',
82
+ 78: 'Social and Information Networks',
83
+ 79: 'Numerical Analysis',
84
+ 80: 'Sound',
85
+ 81: 'Chemical Physics',
86
+ 82: 'Genomics',
87
+ 83: 'Instrumentation and Methods for Astrophysics',
88
+ 84: 'Applications',
89
+ 85: 'Representation Theory',
90
+ 86: 'Machine Learning',
91
+ 87: 'Formal Languages and Automata Theory',
92
+ 88: 'Quantitative Methods',
93
+ 89: 'Atmospheric and Oceanic Physics',
94
+ 90: 'Subcellular Processes',
95
+ 91: 'Networking and Internet Architecture',
96
+ 92: 'Functional Analysis',
97
+ 93: 'Metric Geometry',
98
+ 94: 'General Relativity and Quantum Cosmology',
99
+ 95: 'Spectral Theory',
100
+ 96: 'Graphics',
101
+ 97: 'Adaptation and Self-Organizing Systems',
102
+ 98: 'Economics',
103
+ 99: 'Classical Analysis and ODEs',
104
+ 100: 'Other Computer Science',
105
+ 101: 'Geometric Topology',
106
+ 102: 'Pricing of Securities',
107
+ 103: 'High Energy Physics - Experiment',
108
+ 104: 'Category Theory',
109
+ 105: 'Human-Computer Interaction',
110
+ 106: 'Biological Physics',
111
+ 107: 'Popular Physics',
112
+ 108: 'Probability',
113
+ 109: 'Commutative Algebra',
114
+ 110: 'Strongly Correlated Electrons',
115
+ 111: 'Group Theory',
116
+ 112: 'Computation',
117
+ 113: 'Digital Libraries',
118
+ 114: 'Classical Physics',
119
+ 115: 'Neurons and Cognition',
120
+ 116: 'Operator Algebras',
121
+ 117: 'Tissues and Organs',
122
+ 118: 'High Energy Physics - Lattice',
123
+ 119: 'Robotics',
124
+ 120: 'Portfolio Management',
125
+ 121: 'Computational Complexity',
126
+ 122: 'Soft Condensed Matter',
127
+ 123: 'Mathematical Software',
128
+ 124: 'Applied Physics',
129
+ 125: 'Computer Science and Game Theory',
130
+ 126: 'Multimedia',
131
+ 127: 'Molecular Networks',
132
+ 128: 'Disordered Systems and Neural Networks',
133
+ 129: 'Other Statistics',
134
+ 130: 'Cell Behavior',
135
+ 131: 'Performance',
136
+ 132: 'Biomolecules',
137
+ 133: 'Astrophysics of Galaxies',
138
+ 134: 'Databases',
139
+ 135: 'Algebraic Topology',
140
+ 136: 'Cellular Automata and Lattice Gases',
141
+ 137: 'Algebraic Geometry'}
142
 
143
  # Загружаем модель (замените на вашу модель, если нужно)
144
  @st.cache_resource