E-slam commited on
Commit
ddd62b8
·
verified ·
1 Parent(s): ae798e4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
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
- from Allam_Backend import (
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