KOSASIH / Galactic-Chain

Hardcoded temporary directory detected BAN-B108
Security
Major
4 months ago4 months old
Probable insecure usage of temp file/directory.
 6        self.model = model
 7
 8    def deploy_model(self, host, port):
 9        export_path = '/tmp/model'10        builder = tf.saved_model.builder.SavedModelBuilder(export_path)
11        builder.add_meta_graph_and_variables(
12            self.model,