Spaces:
Running
Running
add desc to hf readme + fix space url
Browse files- .github/workflows/hf_deploy.yml +1 -1
- .github/workflows/ping_hf.yml +1 -1
- README.md +2 -1
- main.py +6 -1
.github/workflows/hf_deploy.yml
CHANGED
|
@@ -18,7 +18,7 @@ jobs:
|
|
| 18 |
- name: Push to Hugging Face Spaces
|
| 19 |
env:
|
| 20 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 21 |
-
HF_SPACE_URL: "https://huggingface.co/spaces/yezdata/
|
| 22 |
run: |
|
| 23 |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
| 24 |
git config --global user.name "github-actions[bot]"
|
|
|
|
| 18 |
- name: Push to Hugging Face Spaces
|
| 19 |
env:
|
| 20 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 21 |
+
HF_SPACE_URL: "https://huggingface.co/spaces/yezdata/emcoder-api-ui"
|
| 22 |
run: |
|
| 23 |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
| 24 |
git config --global user.name "github-actions[bot]"
|
.github/workflows/ping_hf.yml
CHANGED
|
@@ -15,6 +15,6 @@ jobs:
|
|
| 15 |
--retry 5 \
|
| 16 |
--retry-delay 15 \
|
| 17 |
--retry-all-errors \
|
| 18 |
-
"https://yezdata-
|
| 19 |
echo "EmCoder Status: $STATUS"
|
| 20 |
if [ "$STATUS" -ne 200 ]; then exit 1; fi
|
|
|
|
| 15 |
--retry 5 \
|
| 16 |
--retry-delay 15 \
|
| 17 |
--retry-all-errors \
|
| 18 |
+
"https://yezdata-emcoder-api-ui.hf.space/health")
|
| 19 |
echo "EmCoder Status: $STATUS"
|
| 20 |
if [ "$STATUS" -ne 200 ]; then exit 1; fi
|
README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
---
|
| 2 |
title: EmCoder API & UI
|
| 3 |
-
emoji:
|
|
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: docker
|
|
|
|
| 1 |
---
|
| 2 |
title: EmCoder API & UI
|
| 3 |
+
emoji: 🤖
|
| 4 |
+
short_description: Live API & UI service for EmCoder
|
| 5 |
colorFrom: purple
|
| 6 |
colorTo: indigo
|
| 7 |
sdk: docker
|
main.py
CHANGED
|
@@ -156,7 +156,12 @@ def gradio_predict(text, monte_carlo, n_samples):
|
|
| 156 |
|
| 157 |
with gr.Blocks(title="EmCoder - Probabilistic Emotion Recognition") as ui:
|
| 158 |
gr.Markdown("# EmCoder - Probabilistic Emotion Recognition")
|
| 159 |
-
gr.Markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
|
| 161 |
with gr.Row():
|
| 162 |
with gr.Column(scale=1):
|
|
|
|
| 156 |
|
| 157 |
with gr.Blocks(title="EmCoder - Probabilistic Emotion Recognition") as ui:
|
| 158 |
gr.Markdown("# EmCoder - Probabilistic Emotion Recognition")
|
| 159 |
+
gr.Markdown(
|
| 160 |
+
"### [🤗 Model Hub Card](https://huggingface.co/yezdata/EmCoder) | "
|
| 161 |
+
"[📋 API JSON Endpoints](/docs)\n\n"
|
| 162 |
+
"Live API service and graphical interface demonstrating **EmCoder's** epistemic and aleatoric "
|
| 163 |
+
"uncertainty decomposition via Monte Carlo Dropout across **28 multi-label emotion classes**."
|
| 164 |
+
)
|
| 165 |
|
| 166 |
with gr.Row():
|
| 167 |
with gr.Column(scale=1):
|