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

Update app.py

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