Skip to content

Commit 499cd8a

Browse files
committed
fix: remove model from upload form
1 parent 0c559d4 commit 499cd8a

3 files changed

Lines changed: 3 additions & 39 deletions

File tree

reai_toolkit/features/configuration/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _add_binaryview_finalized_event(self, bv):
4343
None,
4444
"RevEng.AI - Binary Not Found",
4545
"This binary has not been processed in the RevEng.AI platform yet.\n\n"
46-
"Please upload and process the binary first using the 'RevEng.AI > Process Binary' option "
46+
"Please upload and process the binary first using the 'RevEng.AI > Create new' option "
4747
"before using other RevEng.AI features.",
4848
QMessageBox.Ok
4949
)

reai_toolkit/features/upload/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, config=None):
1111

1212
def register(self):
1313
PluginCommand.register(
14-
"RevEng.AI\\Analysis\​Process Binary",
14+
"RevEng.AI\\Analysis\Create new",
1515
"Process current binary to RevEng.AI for analysis",
1616
self.show_upload_dialog,
1717
self.is_valid

reai_toolkit/features/upload/upload_dialog.py

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)