ginipick commited on
Commit
a2e9ee0
Β·
verified Β·
1 Parent(s): afa5e3f

Update web.py

Browse files
Files changed (1) hide show
  1. web.py +4 -9
web.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import datetime
3
  import ssl
4
 
5
- # SSL μΈμ¦μ„œ 검증 λΉ„ν™œμ„±ν™” - 이 쀄이 ν•΅μ‹¬μž…λ‹ˆλ‹€
6
  ssl._create_default_https_context = ssl._create_unverified_context
7
 
8
  def update_live_message():
@@ -14,9 +14,8 @@ def update_live_message():
14
 
15
  def run_gradio():
16
  """
17
- Gradio μ›Ή μΈν„°νŽ˜μ΄μŠ€λ₯Ό μ„€μ •ν•˜κ³  μ‹€ν–‰ν•©λ‹ˆλ‹€.
18
  """
19
- # λ‹¨μˆœν•œ ν…μŠ€νŠΈ 응닡 μΈν„°νŽ˜μ΄μŠ€
20
  demo = gr.Blocks(analytics_enabled=False)
21
  with demo:
22
  live_block = gr.Textbox(
@@ -25,12 +24,8 @@ def run_gradio():
25
  elem_id="status"
26
  )
27
 
28
- # μ„œλ²„ μ‹€ν–‰ (SSL 검증 λΉ„ν™œμ„±ν™”)
29
- demo.launch(
30
- server_name="0.0.0.0",
31
- server_port=7860,
32
- ssl_verify=False # 이 μ˜΅μ…˜λ„ μ€‘μš”ν•©λ‹ˆλ‹€
33
- )
34
 
35
  if __name__ == "__main__":
36
  run_gradio()
 
2
  import datetime
3
  import ssl
4
 
5
+ # SSL μΈμ¦μ„œ 검증 λΉ„ν™œμ„±ν™” - λ”± 이 ν•œ μ€„λ§Œ μΆ”κ°€ν•˜λ©΄ λ©λ‹ˆλ‹€
6
  ssl._create_default_https_context = ssl._create_unverified_context
7
 
8
  def update_live_message():
 
14
 
15
  def run_gradio():
16
  """
17
+ μ΅œμ†Œν•œμ˜ Gradio μ›Ή μΈν„°νŽ˜μ΄μŠ€λ₯Ό μ„€μ •ν•˜κ³  μ‹€ν–‰ν•©λ‹ˆλ‹€.
18
  """
 
19
  demo = gr.Blocks(analytics_enabled=False)
20
  with demo:
21
  live_block = gr.Textbox(
 
24
  elem_id="status"
25
  )
26
 
27
+ # μ„œλ²„ μ‹€ν–‰
28
+ demo.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
29
 
30
  if __name__ == "__main__":
31
  run_gradio()