Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
-
import torch
|
2 |
from flask import Flask, request, jsonify
|
3 |
from langchain_community.llms import LlamaCpp
|
4 |
from sentence_transformers import SentenceTransformer
|
5 |
from transformers import AutoModel
|
|
|
|
|
6 |
import os
|
7 |
|
8 |
app = Flask(__name__)
|
|
|
|
|
1 |
from flask import Flask, request, jsonify
|
2 |
from langchain_community.llms import LlamaCpp
|
3 |
from sentence_transformers import SentenceTransformer
|
4 |
from transformers import AutoModel
|
5 |
+
import torch
|
6 |
+
from torch.nn.functional import cosine_similarity
|
7 |
import os
|
8 |
|
9 |
app = Flask(__name__)
|