Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,7 @@ from typing import List
|
|
8 |
import zipfile
|
9 |
import os
|
10 |
import io
|
11 |
-
import spaces
|
12 |
|
13 |
-
@spaces.GPU
|
14 |
def calculate_similarity(code1, code2, Ws, Wl, Wj, model_name):
|
15 |
model = SentenceTransformer(model_name)
|
16 |
embedding1 = model.encode(code1)
|
@@ -52,7 +50,6 @@ def perform_paraphrase_mining(model, codes_list, weight_semantic, weight_levensh
|
|
52 |
weight_jaro_winkler=weight_jaro_winkler
|
53 |
)
|
54 |
|
55 |
-
@spaces.GPU
|
56 |
def paraphrase_mining_with_combined_score(
|
57 |
model,
|
58 |
sentences: List[str],
|
|
|
8 |
import zipfile
|
9 |
import os
|
10 |
import io
|
|
|
11 |
|
|
|
12 |
def calculate_similarity(code1, code2, Ws, Wl, Wj, model_name):
|
13 |
model = SentenceTransformer(model_name)
|
14 |
embedding1 = model.encode(code1)
|
|
|
50 |
weight_jaro_winkler=weight_jaro_winkler
|
51 |
)
|
52 |
|
|
|
53 |
def paraphrase_mining_with_combined_score(
|
54 |
model,
|
55 |
sentences: List[str],
|