import streamlit as st import numpy as np class View: def __init__(self, appName): st.title(appName + " :sunglasses:") # 이모지 사용 가능 st.header("헤더 입력") # 헤더 입력 가능 st.caption("이미지입니다") _sampleCode = """ def check(): print("조회되었습니다.") """ st.code(_sampleCode, language="python") st.text("제가 만든 모델은 이겁니다 ㅎㅎ") st.markdown("# 하이용") st.html("<h1>안녕하세용</h1>") # 웹의 h1 태그를 사용할 수 있다. st.markdown( "텍스트의 색상을 :green[초록색]으로, 그리고 **:blue[파란색]** 볼트체로 설정할 수 있습니다." ) # 파랑색 글씨 사용 가능 st.markdown( ":green[$\sqrt{x^2+y^2}=1$] 와 같이 latex 문법의 수식 표현도 가능합니다 :pencil:" ) # 초록색 글씨 사용 가능 st.latex(r"\sqrt{x^2+y^2}=1") # 수학 수식을 사용 가능하게 한다. st.html("<hr>") # 웹의 hr 태그를 사용할 수 있다.