seawolf2357 commited on
Commit
49c889c
ยท
verified ยท
1 Parent(s): 446771b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -1325,11 +1325,8 @@ def convert_hwp(file, output_format, progress=gr.Progress()):
1325
 
1326
 
1327
  # ============== Gradio UI ==============
1328
- with gr.Blocks(
1329
- title="HWPower AI ์–ด์‹œ์Šคํ„ดํŠธ",
1330
- css=COMIC_CSS,
1331
- delete_cache=(3600, 3600), # 1์‹œ๊ฐ„ ์บ์‹œ ์œ ์ง€
1332
- head="""
1333
  <style>
1334
  header, .container.svelte-1kyws56, #huggingface-space-header,
1335
  div[class*="space-header"], .huggingface-space-header {
@@ -1353,6 +1350,9 @@ function hideHfHeader() {
1353
  setInterval(hideHfHeader, 300);
1354
  </script>
1355
  """
 
 
 
1356
  ) as demo:
1357
 
1358
  # HOME Button
@@ -1411,7 +1411,7 @@ setInterval(hideHfHeader, 300);
1411
  refresh_btn = gr.Button("๐Ÿ”„ ์ƒˆ๋กœ๊ณ ์นจ", size="sm")
1412
 
1413
  with gr.Column(scale=3):
1414
- chatbot = gr.Chatbot(label="๐Ÿ’ฌ AI ๋Œ€ํ™”", height=500, type="messages")
1415
 
1416
  with gr.Row():
1417
  file_upload = gr.File(
@@ -1573,4 +1573,4 @@ setInterval(hideHfHeader, 300);
1573
  demo.load(fn=refresh, outputs=[session_list])
1574
 
1575
  if __name__ == "__main__":
1576
- demo.launch(ssr_mode=False)
 
1325
 
1326
 
1327
  # ============== Gradio UI ==============
1328
+ # Gradio 6.0+ ํ˜ธํ™˜: css, head๋Š” launch()์—์„œ ์ฒ˜๋ฆฌ
1329
+ CUSTOM_HEAD = """
 
 
 
1330
  <style>
1331
  header, .container.svelte-1kyws56, #huggingface-space-header,
1332
  div[class*="space-header"], .huggingface-space-header {
 
1350
  setInterval(hideHfHeader, 300);
1351
  </script>
1352
  """
1353
+
1354
+ with gr.Blocks(
1355
+ title="HWPower AI ์–ด์‹œ์Šคํ„ดํŠธ"
1356
  ) as demo:
1357
 
1358
  # HOME Button
 
1411
  refresh_btn = gr.Button("๐Ÿ”„ ์ƒˆ๋กœ๊ณ ์นจ", size="sm")
1412
 
1413
  with gr.Column(scale=3):
1414
+ chatbot = gr.Chatbot(label="๐Ÿ’ฌ AI ๋Œ€ํ™”", height=500)
1415
 
1416
  with gr.Row():
1417
  file_upload = gr.File(
 
1573
  demo.load(fn=refresh, outputs=[session_list])
1574
 
1575
  if __name__ == "__main__":
1576
+ demo.launch(ssr_mode=False, css=COMIC_CSS, head=CUSTOM_HEAD)