ryanrwatkins commited on
Commit
95ad63d
·
verified ·
1 Parent(s): 001ba94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -114,9 +114,13 @@ prompt_templates = {"All Needs Experts": "Respond as if you are combination of a
114
  actor_description = {"All Needs Experts": "<div style='float: left;margin: 0px 5px 0px 5px;'><img src='https://na.weshareresearch.com/wp-content/uploads/2023/04/experts2.jpg' alt='needs expert image' style='width:70px;align:top;'></div>A combination of all needs assessment experts."}
115
 
116
 
117
- from huggingface_hub import InferenceClient
118
 
119
- api = InferenceClient(model="sentence-transformers/all-MiniLM-L6-v2", token=HF_key)
 
 
 
 
 
120
  response = api(inputs="test sentence")
121
 
122
  print("API response:", response)
 
114
  actor_description = {"All Needs Experts": "<div style='float: left;margin: 0px 5px 0px 5px;'><img src='https://na.weshareresearch.com/wp-content/uploads/2023/04/experts2.jpg' alt='needs expert image' style='width:70px;align:top;'></div>A combination of all needs assessment experts."}
115
 
116
 
 
117
 
118
+ from huggingface_hub import InferenceApi
119
+ #from huggingface_hub import InferenceClient
120
+ api = InferenceClient(repo_id="sentence-transformers/all-MiniLM-L6-v2", token=HF_key)
121
+ #api = InferenceClient(model="sentence-transformers/all-MiniLM-L6-v2", token=HF_key)
122
+
123
+
124
  response = api(inputs="test sentence")
125
 
126
  print("API response:", response)