zayanomar5 commited on
Commit
64cac72
·
verified ·
1 Parent(s): b4821f3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
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__)