Skip to content

Commit

Permalink
Revert "Merge branch 'main' of https://github.com/Vidalnt/Applio"
Browse files Browse the repository at this point in the history
This reverts commit 36e632f, reversing
changes made to 812456e.
  • Loading branch information
Vidalnt committed Sep 8, 2024
1 parent 36e632f commit acff2f5
Show file tree
Hide file tree
Showing 18 changed files with 172 additions and 302 deletions.
46 changes: 14 additions & 32 deletions .github/workflows/issue_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@ name: Issue Management

on:
issues:
types: [opened, edited, reopened]
types: [opened, edited]
issue_comment:
types: [created]

jobs:
check_issue_template:
runs-on: ubuntu-latest
if: github.event_name == 'issues' || (github.event_name == 'issue_comment' && github.event.issue.pull_request == null)
outputs:
template_followed: ${{ steps.check_template.outputs.template_followed }}
steps:
- name: Check Issue Template
id: check_template
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -25,45 +21,31 @@ jobs:
'**Steps to Reproduce**',
'**Desktop Details:**',
];
const body = issue.body || '';
const missingFields = requiredSections.filter(section => {
const sectionContent = body.split(section)[1];
return !sectionContent || sectionContent.trim().length < 5;
});
const comments = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
});
const warningMessageExists = comments.data.some(comment =>
comment.body.includes('Thank you for your issue report. However, it appears that your issue description is')
);
if (missingFields.length > 0 && !warningMessageExists) {
let message = `Thank you for your issue report. However, it appears that your issue description is ${context.payload.action === 'reopened' ? 'still ' : ''}missing or has incomplete information for the following required sections:\n${missingFields.map(field => `- ${field}`).join('\n')}\n\nPlease edit your issue to include all required information using our issue template. This helps us address your concern more effectively.\nIf you need assistance with the template or have any questions, please join our Discord server for support.`;
if (context.payload.action !== 'reopened' && context.payload.action !== 'edited') {
message += '\n\nThis issue will be closed automatically if not updated with complete information within 24 hours. Feel free to reopen it once you\'ve updated it with the required information.';
}
const body = issue.body;
const missingFields = requiredSections.filter(section => !body.includes(section));
if (missingFields.length > 0) {
const message = `Thank you for your issue report. However, it appears that your issue description is missing the following required sections:\n${missingFields.map(field => `- ${field}`).join('\n')}\n\nPlease edit your issue to include all required information using our issue template. This helps us address your concern more effectively.\nIf you need assistance with the template or have any questions, please join our Discord server for support.\n\nThis issue will be closed automatically. Feel free to reopen it once you've updated it with the required information.`;
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
body: message
});
core.setOutput('template_followed', 'false');
} else {
core.setOutput('template_followed', 'true');
await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
state: 'closed'
});
}
auto_reply:
runs-on: ubuntu-latest
needs: check_issue_template
if: needs.check_issue_template.outputs.template_followed == 'true' && github.event.issue.pull_request == null
steps:
- name: Generate Response and Post Comment
uses: actions/github-script@v6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
- name: Install gh-release
if: steps.check-version.outputs.tag
run: |
npm install https://github.com/IAHispano/gh-release.git
npm install https://github.com/Vidalnt/gh-release.git
- name: Create package.json
if: steps.check-version.outputs.tag
Expand All @@ -149,7 +149,7 @@ jobs:
changelog=$(cat summarized_changelog.txt)
GH_RELEASE_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }} npx gh-release \
-t "${tag_name}" \
-n "Applio ${tag_name}" \
-n "Release ${tag_name}" \
-c "main" \
-b "## Important Installation Guidelines
Expand Down
12 changes: 11 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from tabs.settings.restart import restart_tab
from tabs.settings.presence import presence_tab, load_config_presence
from tabs.settings.flask_server import flask_server_tab
from tabs.settings.fake_gpu import fake_gpu_tab, gpu_available, load_fake_gpu
from tabs.settings.themes import theme_tab
from tabs.settings.precision import precision_tab

Expand Down Expand Up @@ -82,7 +83,14 @@
inference_tab()

with gr.Tab(i18n("Train")):
train_tab()
if gpu_available() or load_fake_gpu():
train_tab()
else:
gr.Markdown(
i18n(
"Training is currently unsupported due to the absence of a GPU. To activate the training tab, navigate to the settings tab and enable the 'Fake GPU' option."
)
)

with gr.Tab(i18n("TTS")):
tts_tab()
Expand All @@ -106,6 +114,8 @@
presence_tab()
flask_server_tab()
precision_tab()
if not gpu_available():
fake_gpu_tab()
theme_tab()
version_tab()
lang_tab()
Expand Down
21 changes: 14 additions & 7 deletions assets/Applio.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"source": [
"## **Applio**\n",
"A simple, high-quality voice conversion tool focused on ease of use and performance.\n",
"VITS-based Voice Conversion focused on simplicity, quality and performance.\n",
"\n",
"[Support](https://discord.gg/IAHispano) — [Discord Bot](https://discord.com/oauth2/authorize?client_id=1144714449563955302&permissions=1376674695271&scope=bot%20applications.commands) — [Find Voices](https://applio.org/models) — [GitHub](https://github.com/IAHispano/Applio)\n",
"\n",
Expand All @@ -16,7 +16,10 @@
"### **Credits**\n",
"- Encryption method: [Hina](https://github.com/hinabl)\n",
"- Extra section: [Poopmaster](https://github.com/poiqazwsx)\n",
"- Main development: [Applio Team](https://github.com/IAHispano)"
"- Main development: [Applio Team](https://github.com/IAHispano)\n",
"\n",
"<br>\n",
"\n"
]
},
{
Expand Down Expand Up @@ -57,12 +60,15 @@
"uioawhd = rot_47(codecs.decode(\"pbbxa://oqbpcj.kwu/QIPqaxivw/Ixxtqw.oqb\", \"rot_13\"))\n",
"uyadwa = codecs.decode(\"ncc.cl\", \"rot_13\")\n",
"A = \"/content/\" + rot_47(\"Kikpm.ovm.bu\")\n",
"!git clone --depth 1 $uioawhd $new_name --branch 3.2.5 --single-branch\n",
"D = \"/\"\n",
"\n",
"!git clone --depth 1 $uioawhd $new_name --branch 3.2.4 --single-branch\n",
"%cd $new_name/\n",
"\n",
"clear_output()\n",
"\n",
"def vidal_setup():\n",
" A = \"/content/\" + rot_47(\"Kikpm.ovm.bu\")\n",
" \n",
" D = \"/\"\n",
" if not os.path.exists(A):\n",
" M = os.path.dirname(A)\n",
Expand All @@ -87,9 +93,8 @@
" os.remove(A)\n",
"\n",
"vidal_setup()\n",
"!pip install pydantic==2.8.2 fastapi==0.112.0 starlette==0.37.2\n",
"clear_output()\n",
"print(\"Finished installing requirements! \")"
"print(\"Finished installing requirements!\")"
]
},
{
Expand All @@ -111,7 +116,9 @@
"from IPython.display import display\n",
"import os\n",
"os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\n",
"!npm install -g localtunnel &>/dev/null\n",
"!npm install -g localtunnel\n",
"new_name = rot_47(\"kmjbmvh_hg\")\n",
"%cd $new_name/\n",
"share_tunnel = False # @param {type:\"boolean\"}\n",
"def start_applio():\n",
" if share_tunnel:\n",
Expand Down
Loading

0 comments on commit acff2f5

Please sign in to comment.