Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aichecker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Eggers
aichecker
Commits
3893c1e8
Commit
3893c1e8
authored
4 months ago
by
Jan Eggers
Browse files
Options
Downloads
Patches
Plain Diff
API transcription
parent
ac1c1efa
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
main_tg.py
+1
-1
1 addition, 1 deletion
main_tg.py
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
src/aichecker/check_tg.py
+10
-3
10 additions, 3 deletions
src/aichecker/check_tg.py
src/aichecker/transcribe.py
+1
-1
1 addition, 1 deletion
src/aichecker/transcribe.py
with
13 additions
and
6 deletions
main_tg.py
+
1
−
1
View file @
3893c1e8
...
@@ -5,7 +5,7 @@ from src.aichecker.transcribe import convert_mp4_to_mp3, convert_ogg_to_mp3
...
@@ -5,7 +5,7 @@ from src.aichecker.transcribe import convert_mp4_to_mp3, convert_ogg_to_mp3
from
ast
import
literal_eval
from
ast
import
literal_eval
# KONSTANTEN
# KONSTANTEN
N
=
2
0
N
=
1
0
DETECTORA_T
=
0.8
# 80%
DETECTORA_T
=
0.8
# 80%
AIORNOT_T
=
0.5
# 50% - AIORNOT selbst setzt den Wert sehr niedrig an.
AIORNOT_T
=
0.5
# 50% - AIORNOT selbst setzt den Wert sehr niedrig an.
TEST
=
False
TEST
=
False
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
3893c1e8
...
@@ -10,7 +10,7 @@ authors = [
...
@@ -10,7 +10,7 @@ authors = [
maintainers
=
[
maintainers
=
[
{name
=
"Jan Eggers"
,
email
=
"jan.eggers@hr.de"
}
,
{name
=
"Jan Eggers"
,
email
=
"jan.eggers@hr.de"
}
,
]
]
version
=
"0.2.
3.5
"
# Neue Versionsnummern für pip-Update
version
=
"0.2.
4
"
# Neue Versionsnummern für pip-Update
description
=
"Bluesky- und Telegram-Konten auf KI-Inhalte checken"
description
=
"Bluesky- und Telegram-Konten auf KI-Inhalte checken"
requires-python
=
">
=
3.8
"
requires-python
=
">
=
3.8
"
dependencies
=
[
dependencies
=
[
...
...
This diff is collapsed.
Click to expand it.
src/aichecker/check_tg.py
+
10
−
3
View file @
3893c1e8
...
@@ -366,9 +366,16 @@ def tgc_read_range(cname, n1=1, n2=None, save=True, describe = True):
...
@@ -366,9 +366,16 @@ def tgc_read_range(cname, n1=1, n2=None, save=True, describe = True):
n2
=
max_nr
n2
=
max_nr
posts
=
[]
posts
=
[]
while
n
<=
n2
:
while
n
<=
n2
:
new_post
=
tgc_read
(
cname
,
n
,
save
,
describe
)
max
=
n
n
=
n
+
1
new_posts
=
tgc_blockread
(
cname
,
n
,
save
,
describe
)
posts
.
append
(
new_post
)
for
p
in
new_posts
:
if
p
[
'
nr
'
]
>
n2
:
return
posts
if
p
[
'
nr
'
]
>=
n
:
posts
.
append
(
p
)
if
p
[
'
nr
'
]
>
max
:
max
=
p
[
'
nr
'
]
n
=
max
return
posts
return
posts
def
tgc_read_number
(
cname
,
n
=
20
,
cutoff
=
None
,
save
=
True
,
describe
=
True
):
def
tgc_read_number
(
cname
,
n
=
20
,
cutoff
=
None
,
save
=
True
,
describe
=
True
):
...
...
This diff is collapsed.
Click to expand it.
src/aichecker/transcribe.py
+
1
−
1
View file @
3893c1e8
...
@@ -67,7 +67,7 @@ def ai_description(image):
...
@@ -67,7 +67,7 @@ def ai_description(image):
# Return ai-generated description
# Return ai-generated description
return
desc2
return
desc2
def
transcribe
(
fname
,
use_api
=
Fals
e
):
def
transcribe
(
fname
,
use_api
=
Tru
e
):
# Wrapper; ruft eine der drei Whisper-Transcribe-Varianten auf.
# Wrapper; ruft eine der drei Whisper-Transcribe-Varianten auf.
# Favorit: das beschleunigte whisper-s2t
# Favorit: das beschleunigte whisper-s2t
# (das aber erst CTranslate2 mit METAL-Unterstützung braucht auf dem Mac
# (das aber erst CTranslate2 mit METAL-Unterstützung braucht auf dem Mac
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment