Spaces:
Sleeping
Sleeping
JuliaWolken
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
"""
|
9 |
|
10 |
chunks_data_path = 'WB_KB/chunks.csv'
|
11 |
model = SentenceTransformer('JuliaWolken/fine_tuned_model_with_triplets')
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import pandas as pd
|
3 |
+
from sentence_transformers import SentenceTransformer
|
4 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
5 |
+
from sklearn.metrics.pairwise import cosine_similarity
|
6 |
+
import torch
|
7 |
+
import re
|
|
|
8 |
|
9 |
chunks_data_path = 'WB_KB/chunks.csv'
|
10 |
model = SentenceTransformer('JuliaWolken/fine_tuned_model_with_triplets')
|