Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def image_to_base64(img_path):
|
|
11 |
with open(img_path, "rb") as img_file:
|
12 |
return base64.b64encode(img_file.read()).decode('utf-8')
|
13 |
|
14 |
-
img_base64 = image_to_base64("
|
15 |
img_html = f'<img src="data:image/jpg;base64,{img_base64}" alt="SBC6" width="300" style="display: block; margin: auto;"/>'
|
16 |
|
17 |
def predict(question_choice, audio):
|
@@ -50,7 +50,7 @@ def predict(question_choice, audio):
|
|
50 |
|
51 |
|
52 |
def get_image_html():
|
53 |
-
return " as img_file:
|
12 |
return base64.b64encode(img_file.read()).decode('utf-8')
|
13 |
|
14 |
+
img_base64 = image_to_base64("HongWenSBC.JPG")
|
15 |
img_html = f'<img src="data:image/jpg;base64,{img_base64}" alt="SBC6" width="300" style="display: block; margin: auto;"/>'
|
16 |
|
17 |
def predict(question_choice, audio):
|
|
|
50 |
|
51 |
|
52 |
def get_image_html():
|
53 |
+
return "" # Markdown syntax to embed the image
|
54 |
|
55 |
|
56 |
# Gradio Interface
|