Upload folder using huggingface_hub
Browse files- app.py +2 -1
- config.json +2 -2
- pytorch_model.bin +2 -2
app.py
CHANGED
@@ -125,7 +125,8 @@ def sentiment_analysis(
|
|
125 |
else:
|
126 |
client = Client()
|
127 |
latest_run = client.get_pipeline(
|
128 |
-
"sentinment_analysis_deploy_pipeline"
|
|
|
129 |
).runs[0]
|
130 |
endpoint_name = (
|
131 |
latest_run.steps["deploy_hf_to_sagemaker"]
|
|
|
125 |
else:
|
126 |
client = Client()
|
127 |
latest_run = client.get_pipeline(
|
128 |
+
"sentinment_analysis_deploy_pipeline",
|
129 |
+
version=1
|
130 |
).runs[0]
|
131 |
endpoint_name = (
|
132 |
latest_run.steps["deploy_hf_to_sagemaker"]
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "/tmp/
|
3 |
"architectures": [
|
4 |
"RobertaForSequenceClassification"
|
5 |
],
|
@@ -21,7 +21,7 @@
|
|
21 |
"position_embedding_type": "absolute",
|
22 |
"problem_type": "single_label_classification",
|
23 |
"torch_dtype": "float32",
|
24 |
-
"transformers_version": "4.
|
25 |
"type_vocab_size": 1,
|
26 |
"use_cache": true,
|
27 |
"vocab_size": 50265
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "/tmp/tmp_pmhuqtd/sentinment_analysis_model/model",
|
3 |
"architectures": [
|
4 |
"RobertaForSequenceClassification"
|
5 |
],
|
|
|
21 |
"position_embedding_type": "absolute",
|
22 |
"problem_type": "single_label_classification",
|
23 |
"torch_dtype": "float32",
|
24 |
+
"transformers_version": "4.34.1",
|
25 |
"type_vocab_size": 1,
|
26 |
"use_cache": true,
|
27 |
"vocab_size": 50265
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6d9eb4b77e8a05f9c1715c713766312a54947c88f4aca32c844b5cde9d345a3a
|
3 |
+
size 498655278
|