Compare commits

...

2 Commits

Author SHA1 Message Date
Paul Trowbridge 90cc2ba2b6 update 2023-04-11 10:36:27 -04:00
Paul Trowbridge 01aecb888e command to add translations to 30sec markdown file 2023-04-11 10:23:34 -04:00
3 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.env
*.swp
curl.sh
.vscode

4
add_to_file.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
#$PG -t -A -c "SELECT '## 2023-03-31' UNION ALL SELECT ' - ' ||(message->>'text') from rlarp.thirtysec where mdate >= '2023-03-31'" | fold -s -w 80 | sed -E 's/^([^ -])/ \1/;s/^(-{1,2} )/ \1/;s/^/ /'
$PG -t -A -c "SELECT '## 2023-04-06' UNION ALL SELECT '- ' ||mdate||' [[]] '||(message->>'text') from rlarp.thirtysec where mdate >= '2023-04-06'" >> /mnt/c/Users/PTrowbridge/hc_notes/30sec.md

View File

@ -56,6 +56,7 @@ for file_name in os.listdir(args.dir_path):
continue
# Send the transcription request and retrieve the results
print(f"to be processed {file_path}")
audio_file = open(file_path, 'rb')
response = requests.post(url, headers=headers, params=params, data=data, files={'file': audio_file})
transcript = response.text