heysho commited on
Commit
8caf352
1 Parent(s): 4a46664

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -14
app.py CHANGED
@@ -20,7 +20,14 @@ PROMPT = """
20
  4. その日の計画: {plan}.
21
  5. 日本語で100語以内で説明してください。
22
  """
23
-
 
 
 
 
 
 
 
24
 
25
  def init_page():
26
  st.set_page_config(
@@ -59,19 +66,7 @@ def main():
59
  st.markdown("""<style>.st-emotion-cache-15ecox0 { display: none !important; }
60
  @media (max-width: 50.5rem) {.st-emotion-cache-13ln4jf {max-width: calc(0rem + 100vw);}}
61
  </style>""",unsafe_allow_html=True,)
62
-
63
-
64
- # Your HTML and JavaScript code
65
- html_code = """
66
- <script type="text/javascript">
67
- window.onload = function() {
68
- var height = document.getElementsByTagName("html")[0].scrollHeight;
69
- window.parent.postMessage(["setHeight", height], "https://arigatoai.com/agent/daily-reminder.html");
70
- }
71
- </script>
72
- """
73
-
74
- components.html(html_code, height=300)
75
  chain = init_chain()
76
  if chain:
77
  feeling = st.selectbox(
 
20
  4. その日の計画: {plan}.
21
  5. 日本語で100語以内で説明してください。
22
  """
23
+ html_code = """
24
+ <script type="text/javascript">
25
+ window.onload = function() {
26
+ var height = document.getElementsByTagName("html")[0].scrollHeight;
27
+ window.parent.postMessage(["setHeight", height], "https://arigatoai.com/agent/daily-reminder.html");
28
+ }
29
+ </script>
30
+ """
31
 
32
  def init_page():
33
  st.set_page_config(
 
66
  st.markdown("""<style>.st-emotion-cache-15ecox0 { display: none !important; }
67
  @media (max-width: 50.5rem) {.st-emotion-cache-13ln4jf {max-width: calc(0rem + 100vw);}}
68
  </style>""",unsafe_allow_html=True,)
69
+ components.html(html_code, height=0)
 
 
 
 
 
 
 
 
 
 
 
 
70
  chain = init_chain()
71
  if chain:
72
  feeling = st.selectbox(