Skip to content

Commit

Permalink
Move import
Browse files Browse the repository at this point in the history
  • Loading branch information
acrrd committed Aug 7, 2023
1 parent 905f4d8 commit c68409a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions bert/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use std::{fs::File, io::BufReader, path::PathBuf};

use anyhow::bail;
use anyhow::{bail, Result};
use derive_more::{Deref, From};
use ndarray::CowArray;
use ort::{
Expand Down Expand Up @@ -49,8 +49,6 @@ enum Dimension {
Dynamic(DynDim),
}

use anyhow::Result;

impl<P> Config<P> {
fn extract_facts(
&self,
Expand Down
3 changes: 1 addition & 2 deletions web-api/src/embedding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ impl Embedder {
}

pub(crate) fn run(&self, sequence: &str) -> Result<NormalizedEmbedding, InternalError> {
self
.embedder
self.embedder
.run(sequence)
.map_err(InternalError::from_std)?
.normalize()
Expand Down

0 comments on commit c68409a

Please sign in to comment.