Spaces:
Sleeping
Sleeping
Modified Gradio Config
Browse files- .github/workflows/check-file-size.yaml +2 -2
- .github/workflows/sync-space.yaml +1 -1
- LICENSE +1 -1
- README.md +0 -1
- app.py +2 -3
.github/workflows/check-file-size.yaml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
name: Check file size
|
2 |
-
on:
|
3 |
pull_request:
|
4 |
branches: [main]
|
5 |
|
@@ -13,4 +13,4 @@ jobs:
|
|
13 |
- name: Check large files
|
14 |
uses: ActionsDesk/lfs-warning@v2.0
|
15 |
with:
|
16 |
-
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
|
|
|
1 |
name: Check file size
|
2 |
+
on: # or directly `on: [push]` to run the action on every push on any branch
|
3 |
pull_request:
|
4 |
branches: [main]
|
5 |
|
|
|
13 |
- name: Check large files
|
14 |
uses: ActionsDesk/lfs-warning@v2.0
|
15 |
with:
|
16 |
+
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
|
.github/workflows/sync-space.yaml
CHANGED
@@ -16,4 +16,4 @@ jobs:
|
|
16 |
- name: Push to hub
|
17 |
env:
|
18 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
19 |
-
run: git push https://sdutta28:$HF_TOKEN@huggingface.co/spaces/sdutta28/AggDetectApp main
|
|
|
16 |
- name: Push to hub
|
17 |
env:
|
18 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
19 |
+
run: git push https://sdutta28:$HF_TOKEN@huggingface.co/spaces/sdutta28/AggDetectApp main
|
LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
MIT License
|
2 |
|
3 |
-
Copyright (c)
|
4 |
|
5 |
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
of this software and associated documentation files (the "Software"), to deal
|
|
|
1 |
MIT License
|
2 |
|
3 |
+
Copyright (c) 2023 Sandip Dutta
|
4 |
|
5 |
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
of this software and associated documentation files (the "Software"), to deal
|
README.md
CHANGED
@@ -5,7 +5,6 @@ colorTo: blue
|
|
5 |
sdk: gradio
|
6 |
app_file: app.py
|
7 |
pinned: false
|
8 |
-
python_version: 3.7.0
|
9 |
---
|
10 |
|
11 |
# Agression and Misogyny Detection App
|
|
|
5 |
sdk: gradio
|
6 |
app_file: app.py
|
7 |
pinned: false
|
|
|
8 |
---
|
9 |
|
10 |
# Agression and Misogyny Detection App
|
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
# App
|
2 |
from components.get_predictions import get_predictions
|
3 |
import gradio
|
4 |
|
@@ -13,8 +12,8 @@ if __name__ == "__main__":
|
|
13 |
label="Text to Predict",
|
14 |
),
|
15 |
outputs=[
|
16 |
-
gradio.outputs.Textbox(type="
|
17 |
-
gradio.outputs.Textbox(type="
|
18 |
],
|
19 |
title="Aggression and Misogyny Predictor",
|
20 |
theme="dark-huggingface",
|
|
|
|
|
1 |
from components.get_predictions import get_predictions
|
2 |
import gradio
|
3 |
|
|
|
12 |
label="Text to Predict",
|
13 |
),
|
14 |
outputs=[
|
15 |
+
gradio.outputs.Textbox(type="str", label="Aggression Prediction"),
|
16 |
+
gradio.outputs.Textbox(type="str", label="Misogyny Prediction"),
|
17 |
],
|
18 |
title="Aggression and Misogyny Predictor",
|
19 |
theme="dark-huggingface",
|