Sarath0x8f commited on
Commit
4aa5c7e
·
verified ·
1 Parent(s): 81c03d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -47,6 +47,14 @@ def respond(
47
  response += token
48
  yield response
49
 
 
 
 
 
 
 
 
 
50
 
51
  # Gradio interface with additional sliders for control
52
  with gr.Blocks(theme=gr.themes.Ocean(font=[gr.themes.GoogleFont("Roboto Mono")])) as main:
 
47
  response += token
48
  yield response
49
 
50
+ def encode_image(image_path):
51
+ with open(image_path, "rb") as image_file:
52
+ return base64.b64encode(image_file.read()).decode('utf-8')
53
+
54
+ # Encode the images
55
+ github_logo_encoded = encode_image("Images/github-logo.png")
56
+ linkedin_logo_encoded = encode_image("Images/linkedin-logo.png")
57
+ website_logo_encoded = encode_image("Images/ai-logo.png")
58
 
59
  # Gradio interface with additional sliders for control
60
  with gr.Blocks(theme=gr.themes.Ocean(font=[gr.themes.GoogleFont("Roboto Mono")])) as main: