yunuseduran commited on
Commit
63bb800
·
verified ·
1 Parent(s): 34c9ab5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -51,10 +51,10 @@ def create_stylecloud(text, language, icon):
51
  output_file = "static/stylecloud.png"
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
 
59
  st.title("WordCloud Creator")
60
 
 
51
  output_file = "static/stylecloud.png"
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
 
59
  st.title("WordCloud Creator")
60