Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -96,6 +96,15 @@ prompt_templates = {"All Needs Experts": "Respond as if you are combination of a
|
|
96 |
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."}
|
97 |
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
# Initiates the UI features
|
101 |
|
|
|
96 |
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."}
|
97 |
|
98 |
|
99 |
+
from huggingface_hub import InferenceApi
|
100 |
+
|
101 |
+
api = InferenceApi(repo_id="sentence-transformers/all-MiniLM-l6-v2", token=HF_key)
|
102 |
+
response = api(inputs="test sentence")
|
103 |
+
|
104 |
+
print("API response:", response)
|
105 |
+
|
106 |
+
|
107 |
+
|
108 |
|
109 |
# Initiates the UI features
|
110 |
|