Spaces:
Running
Running
Update app.py
Browse files
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:
|