Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -5,6 +5,8 @@ from transformers import AutoTokenizer, AutoModel
|
|
5 |
from sklearn.metrics.pairwise import cosine_similarity
|
6 |
from flask import Flask, request, jsonify
|
7 |
import torch
|
|
|
|
|
8 |
app = Flask(__name__)
|
9 |
|
10 |
n_gpu_layers = 0
|
|
|
5 |
from sklearn.metrics.pairwise import cosine_similarity
|
6 |
from flask import Flask, request, jsonify
|
7 |
import torch
|
8 |
+
import os
|
9 |
+
|
10 |
app = Flask(__name__)
|
11 |
|
12 |
n_gpu_layers = 0
|