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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +137 -137
app.py CHANGED
@@ -2,143 +2,143 @@ 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
 
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: 'Systems and Control',
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