Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from pyvis.network import Network
|
| 3 |
import random
|
| 4 |
-
|
| 5 |
|
| 6 |
# 애플리케이션 상태 관리
|
| 7 |
if "page" not in st.session_state:
|
|
@@ -76,8 +76,8 @@ def match_result_page():
|
|
| 76 |
|
| 77 |
# HTML 렌더링
|
| 78 |
net_html = net.generate_html()
|
| 79 |
-
components.html(net_html, height=600)
|
| 80 |
-
|
| 81 |
# 매칭 결과 출력
|
| 82 |
st.subheader("매칭 결과:")
|
| 83 |
for pair in matching_pairs:
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from pyvis.network import Network
|
| 3 |
import random
|
| 4 |
+
import streamlit.components.v1 as components
|
| 5 |
|
| 6 |
# 애플리케이션 상태 관리
|
| 7 |
if "page" not in st.session_state:
|
|
|
|
| 76 |
|
| 77 |
# HTML 렌더링
|
| 78 |
net_html = net.generate_html()
|
| 79 |
+
components.html(net_html, height=600) # 수정된 부분
|
| 80 |
+
|
| 81 |
# 매칭 결과 출력
|
| 82 |
st.subheader("매칭 결과:")
|
| 83 |
for pair in matching_pairs:
|