heysho commited on
Commit
dd6d5fe
1 Parent(s): 0342615

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -16
app.py CHANGED
@@ -67,23 +67,10 @@ def init_chain():
67
 
68
  def main():
69
  init_page()
70
- if __name__ == '__main__':
71
- main()
72
  # Style adjustments (optional, remove if not needed)
73
- st.markdown(
74
- """
75
- <style>
76
- /* Custom style adjustments */
77
- .st-emotion-cache-15ecox0 { display: none !important; }
78
- @media (max-width: 50.5rem) {
79
- .st-emotion-cache-13ln4jf {
80
- max-width: calc(0rem + 100vw);
81
- }
82
- }
83
- </style>
84
- """,
85
- unsafe_allow_html=True,
86
- )
87
  chain = init_chain()
88
  if chain:
89
  sender = st.selectbox("送信者",("同僚", "上司", "クライアント", "友人"),key="sender")
@@ -94,3 +81,5 @@ def main():
94
  result = chain.stream({"sender": sender, "subject": subject, "message": message, "reply": reply})
95
  st.write(result)
96
 
 
 
 
67
 
68
  def main():
69
  init_page()
 
 
70
  # Style adjustments (optional, remove if not needed)
71
+ st.markdown("""<style>.st-emotion-cache-15ecox0 { display: none !important; }
72
+ @media (max-width: 50.5rem) {.st-emotion-cache-13ln4jf {max-width: calc(0rem + 100vw);}}
73
+ </style>""",unsafe_allow_html=True,)
 
 
 
 
 
 
 
 
 
 
 
74
  chain = init_chain()
75
  if chain:
76
  sender = st.selectbox("送信者",("同僚", "上司", "クライアント", "友人"),key="sender")
 
81
  result = chain.stream({"sender": sender, "subject": subject, "message": message, "reply": reply})
82
  st.write(result)
83
 
84
+ if __name__ == '__main__':
85
+ main()