@@ -9,13 +9,12 @@ def __init__(self, config, uploader, bv):
99 self .config = config
1010 self .uploader = uploader
1111 self .bv = bv
12- self .model_thread = None
1312 self .upload_thread = None
1413 self .progress = None
1514 self .init_ui ()
1615
1716 def init_ui (self ):
18- self .setWindowTitle ("RevEng.AI: Process Binary " )
17+ self .setWindowTitle ("RevEng.AI: Create new " )
1918 self .setMinimumWidth (500 )
2019
2120 layout = QVBoxLayout ()
@@ -41,13 +40,6 @@ def init_ui(self):
4140 tags_layout .addWidget (self .tags_input )
4241 layout .addLayout (tags_layout )
4342
44- model_layout = QHBoxLayout ()
45- model_label = QLabel ("AI Model:" )
46- self .model_combo = QComboBox ()
47- model_layout .addWidget (model_label )
48- model_layout .addWidget (self .model_combo )
49- layout .addLayout (model_layout )
50-
5143 privacy_group = QGroupBox ("Privacy:" )
5244 privacy_layout = QVBoxLayout ()
5345
@@ -97,35 +89,8 @@ def init_ui(self):
9789
9890 self .show ()
9991 QCoreApplication .processEvents ()
100-
101- self .load_models ()
102-
103- def load_models (self ):
104- self .progress = create_progress_dialog (self , "RevEng.AI" , "Loading available models..." )
105- self .progress .show ()
106- QCoreApplication .processEvents ()
107-
108- self .model_thread = DataThread (self .uploader .get_models , self .bv )
109- self .model_thread .finished .connect (self ._on_models_loaded )
110- self .model_thread .start ()
111-
112- def _on_models_loaded (self , success , models ):
113- self .progress .close ()
114- self .model_combo .clear ()
115- if success :
116- for model in models :
117- self .model_combo .addItem (model )
118- else :
119- log_error (f"RevEng.AI | Failed to load models: { models } " )
120- QMessageBox .critical (self , "RevEng.AI Model Loading Error" , f"Failed to load available models: { models } " , QMessageBox .Ok )
121- self .reject ()
12292
12393 def upload_binary (self ):
124- if not self .model_combo .currentText ():
125- log_error ("RevEng.AI | Model selection is required" )
126- QMessageBox .warning (self , "RevEng.AI Upload" , "Please select a model for analysis." , QMessageBox .Ok )
127- return
128-
12994 self .progress = create_progress_dialog (self , "RevEng.AI Upload" , "Uploading binary to RevEng.AI..." )
13095 self .progress .show ()
13196 QCoreApplication .processEvents ()
@@ -153,6 +118,5 @@ def get_upload_options(self):
153118 return {
154119 'debug_info' : self .debug_combo .currentText (),
155120 'tags' : [tag .strip () for tag in self .tags_input .text ().split (',' ) if tag .strip ()],
156- 'model' : self .model_combo .currentText (),
157121 'is_private' : self .private_radio .isChecked ()
158122 }
0 commit comments