Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -7,7 +7,9 @@ from transformers import AutoTokenizer, AutoModel
|
|
7 |
import torch
|
8 |
from torch import Tensor
|
9 |
import torch.nn.functional as F
|
10 |
-
|
|
|
|
|
11 |
import os
|
12 |
os.environ['HF_HOME'] = '/'
|
13 |
|
@@ -56,9 +58,7 @@ def e5_embeddings(query: str = Query(...)):
|
|
56 |
else:
|
57 |
raise HTTPException(status_code=500)
|
58 |
|
59 |
-
|
60 |
-
allam_llm
|
61 |
-
)
|
62 |
@app.get("/allam_response")
|
63 |
def allam_response(query: str = Query(...)):
|
64 |
|
|
|
7 |
import torch
|
8 |
from torch import Tensor
|
9 |
import torch.nn.functional as F
|
10 |
+
from Allam_Backend_HF import (
|
11 |
+
allam_llm
|
12 |
+
)
|
13 |
import os
|
14 |
os.environ['HF_HOME'] = '/'
|
15 |
|
|
|
58 |
else:
|
59 |
raise HTTPException(status_code=500)
|
60 |
|
61 |
+
|
|
|
|
|
62 |
@app.get("/allam_response")
|
63 |
def allam_response(query: str = Query(...)):
|
64 |
|