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
5fe6350d
Commit
5fe6350d
authored
3 months ago
by
Jan Eggers
Browse files
Options
Downloads
Patches
Plain Diff
Zwischenstand
parent
1177e1ba
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main_tg.py
+8
-6
8 additions, 6 deletions
main_tg.py
with
8 additions
and
6 deletions
main_tg.py
+
8
−
6
View file @
5fe6350d
...
...
@@ -2,6 +2,10 @@ from src.aichecker.check_tg import *
from
src.aichecker.detectora
import
query_detectora
from
src.aichecker.aiornot
import
query_aiornot
# KONSTANTEN
N
=
20
DETECTORA_T
=
0.8
# 80%
AIORNOT_T
=
0.9
# 90%
TEST
=
False
# Hilfsfunktion: CSV einlesen und als df ausgeben
...
...
@@ -81,14 +85,12 @@ if __name__ == "__main__":
existing_df
=
reimport_csv
(
filename
)
max_nr
=
max
(
existing_df
[
'
nr
'
])
print
(
f
"
Dieser Kanal wurde schon einmal ausgelesen, zuletzt Post Nr.:
{
max_nr
}
- seitdem
{
last_post
-
max_nr
}
neue Posts
"
)
# Lies die 20 aktuellsten Posts, sichere und analysiere sie
else
:
max_nr
=
last_post
-
N
# Lies die aktuellsten Posts, sichere und analysiere sie
#
# KONSTANTEN
N
=
10
DETECTORA_T
=
0.8
# 80%
AIORNOT_T
=
0.9
# 90%
print
(
"
Einlesen/mit KI beschreiben:
"
,
end
=
""
)
posts
=
tgc_read_
number
(
handle_str
,
N
)
posts
=
tgc_read_
range
(
handle_str
,
max_nr
+
1
,
last_post
)
print
()
# für die Fortschrittsmeldung
print
(
"
Auf KI-Inhalt prüfen:
"
,
end
=
""
)
checked_posts
=
check_tg_list
(
posts
,
check_images
=
True
)
...
...
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