tori29umai commited on
Commit
71192b5
·
verified ·
1 Parent(s): 33ce99e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -15
app.py CHANGED
@@ -256,21 +256,6 @@ custom_css = """
256
  }
257
  """
258
 
259
- # カスタムJavaScript(HTML内に埋め込む)
260
- custom_js = """
261
- <script>
262
- function adjustChatbotHeight() {
263
- var chatbot = document.querySelector('#chatbot');
264
- if (chatbot) {
265
- chatbot.style.height = window.innerHeight * 0.4 + 'px';
266
- }
267
- }
268
- // ページ読み込み時と画面サイズ変更時にチャットボットの高さを調整
269
- window.addEventListener('load', adjustChatbotHeight);
270
- window.addEventListener('resize', adjustChatbotHeight);
271
- </script>
272
- """
273
-
274
  # Gradioインターフェースの設定
275
  with gr.Blocks(css=custom_css) as iface:
276
  gr.HTML("""
 
256
  }
257
  """
258
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
259
  # Gradioインターフェースの設定
260
  with gr.Blocks(css=custom_css) as iface:
261
  gr.HTML("""