Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,32 @@ with col2:
|
|
65 |
with col3:
|
66 |
st.image("assets/gomokubot.png", width=600) # 替换为你的图片 URL
|
67 |
st.caption("Rule-Based GomokuBot")
|
68 |
-
|
69 |
-
st.write("<h2 style='text-align: center; color: black; font-weight: bold;'>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
|
|
65 |
with col3:
|
66 |
st.image("assets/gomokubot.png", width=600) # 替换为你的图片 URL
|
67 |
st.caption("Rule-Based GomokuBot")
|
68 |
+
|
69 |
+
st.write("<h2 style='text-align: center; color: black; font-weight: bold;'>Some Demos </h2>", unsafe_allow_html=True)
|
70 |
+
|
71 |
+
file1 = open("assets/multi-model.gif", "rb")
|
72 |
+
contents = file1.read()
|
73 |
+
data_url1 = base64.b64encode(contents).decode("utf-8")
|
74 |
+
file1.close()
|
75 |
+
|
76 |
+
file2 = open("assets/mercy.gif", "rb")
|
77 |
+
contents = file2.read()
|
78 |
+
data_url2 = base64.b64encode(contents).decode("utf-8")
|
79 |
+
file2.close()
|
80 |
+
|
81 |
+
file3 = open("assets/edge_blindness.gif", "rb")
|
82 |
+
contents = file3.read()
|
83 |
+
data_url3 = base64.b64encode(contents).decode("utf-8")
|
84 |
+
file3.close()
|
85 |
+
|
86 |
+
st.markdown(
|
87 |
+
f"""<div style="display: flex; justify-content: space-between;">
|
88 |
+
<img src="data:image/gif;base64,{data_url1}" alt="cat gif" style="width: 700px;">
|
89 |
+
<img src="data:image/gif;base64,{data_url2}" alt="cat gif" style="width: 700px;">
|
90 |
+
<img src="data:image/gif;base64,{data_url3}" alt="cat gif" style="width: 700px;">
|
91 |
+
</div>""",
|
92 |
+
unsafe_allow_html=True,
|
93 |
+
)
|
94 |
+
|
95 |
+
|
96 |
|