yunuseduran commited on
Commit
02dfe9a
·
verified ·
1 Parent(s): 63bb800

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def create_stylecloud(text, language, icon):
52
  stylecloud.gen_stylecloud(text=text, icon_name=icon, output_name=output_file)
53
  # Dosyayı Base64 olarak kodla
54
  with open(output_file, "rb") as file:
55
- data = file.read()
56
  encoded = base64.b64encode(data).decode()
57
  return encoded
58
 
 
52
  stylecloud.gen_stylecloud(text=text, icon_name=icon, output_name=output_file)
53
  # Dosyayı Base64 olarak kodla
54
  with open(output_file, "rb") as file:
55
+ data = file.read()
56
  encoded = base64.b64encode(data).decode()
57
  return encoded
58