Skip to content

Commit

Permalink
Fix uuid use
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Sep 19, 2024
1 parent 7e8ad6a commit a08b4a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openai_server/agent_tools/audio_transcription.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def main():
)
# Save the image to a file
if not args.output:
args.output = f"transcription_{uuid.uuid4()[:6]}.txt"
args.output = f"transcription_{str(uuid.uuid4())[:6]}.txt"
# Write the transcription to a file
with open(args.output, "wt") as txt_file:
txt_file.write(transcription.text)
Expand Down
2 changes: 1 addition & 1 deletion openai_server/agent_tools/image_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def main():

# Save the image to a file
if not args.output:
args.output = f"image_{uuid.uuid4()[:6]}.txt"
args.output = f"image_{str(uuid.uuid4())[:6]}.txt"

# Write the image data to a file
with open(args.output, "wb") as img_file:
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "c457e918e1fdf8554355d877220b23f4af23a0b7"
__version__ = "7e8ad6ac9d54124bb5ffccb5d0dbb36b5324c657"

0 comments on commit a08b4a6

Please sign in to comment.