Skip to content

Commit

Permalink
Revert model provenance functions for open source (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiveer committed Aug 16, 2024
1 parent acdbc20 commit 8533d78
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion app/javascript/components/shared/RepoDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
:totalLikes="repo.likes"
:hasLike="repo.user_likes"
:repoType="repoType"
:baseModel="repo.base_model"
/>
</div>
</div>
Expand Down
16 changes: 1 addition & 15 deletions app/javascript/components/shared/RepoHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,6 @@
/>
<span class="text-[#344054] font-normal">{{ resourceName }}</span>
</div>
<div
v-if="repoType === 'model' && baseModel"
class="flex items-center text-[#344054] text-base font-normal"
>
{{ $t('all.baseModel') }}:
<div @click="redirectBaseModel" class="cursor-pointer text-[#475467] hover:text-[#344054] focus:text-[#475467] ml-[8px]">
{{ baseModel }}
</div>
</div>
</div>
<div class="leading-[24px] pb-[16px] text-[#344054] md:px-5">{{ desc }}</div>

Expand Down Expand Up @@ -234,8 +225,7 @@
default: 0
},
hasLike: Boolean,
resourceName: String,
baseModel: String
resourceName: String
})
const userLiked = ref(props.hasLike)
Expand Down Expand Up @@ -273,10 +263,6 @@
}
})
const redirectBaseModel = () => {
window.location.href = `/models/${props.baseModel}`
}
const clickLike = () => {
userLiked.value === true ? removeLike() : addLike()
}
Expand Down
1 change: 0 additions & 1 deletion config/locales/en_js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export const all = {
fetchError: "Failed to fetch data",
deploy: "Deploy",
more:"More",
baseModel:"Base Model",
sdkTips: "Please register first and then obtain the Token from OpenCSG's account page",
public: "Public",
private: "Private",
Expand Down
1 change: 0 additions & 1 deletion config/locales/zh_js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export const all = {
fetchError: "获取数据失败",
deploy: "部署",
more:"更多",
baseModel:"基座模型",
sdkTips: "请先注册,然后从 OpenCSG 的账号页面获取 Token",
public: "公开",
private: "私有",
Expand Down

0 comments on commit 8533d78

Please sign in to comment.