dev-yuje commited on
Commit
267e2af
ยท
1 Parent(s): 7d7894d

Fix: Upgrade to Gradio 5.1.0 and enable queue to resolve TypeError and sharing issue on Docker

Browse files
Files changed (3) hide show
  1. README.md +2 -2
  2. app.py +2 -2
  3. requirements.txt +1 -1
README.md CHANGED
@@ -8,5 +8,5 @@ app_port: 7860
8
  pinned: false
9
  ---
10
 
11
- # ๐Ÿ›ก๏ธ KCB AI ์‹ ์šฉ ์ƒ๋‹ด ์‹œ์Šคํ…œ (Docker)
12
- Dockerfile์„ ์ด์šฉํ•œ ์ปค์Šคํ…€ ํ™˜๊ฒฝ ๋ฐฐํฌ ๋ฒ„์ „์ž…๋‹ˆ๋‹ค.
 
8
  pinned: false
9
  ---
10
 
11
+ # ๐Ÿ›ก๏ธ KCB AI ์‹ ์šฉ ์ƒ๋‹ด ์‹œ์Šคํ…œ (v5.1.0)
12
+ Docker ๊ธฐ๋ฐ˜ ๊ณ ์„ฑ๋Šฅ ๋ฐฐํฌ ํ™˜๊ฒฝ์ž…๋‹ˆ๋‹ค.
app.py CHANGED
@@ -141,5 +141,5 @@ with gr.Blocks(title="KCB AI Consultant") as demo:
141
  submit_btn.click(clear_msg, [msg, chatbot], [msg, chatbot]).then(generate_response, [chatbot, msg, analysis_report], [chatbot, msg])
142
 
143
  if __name__ == "__main__":
144
- # Docker ํ™˜๊ฒฝ์—์„œ๋Š” ๋ฐ˜๋“œ์‹œ server_name="0.0.0.0"๊ณผ port=7860 ์„ค์ •์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
145
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
141
  submit_btn.click(clear_msg, [msg, chatbot], [msg, chatbot]).then(generate_response, [chatbot, msg, analysis_report], [chatbot, msg])
142
 
143
  if __name__ == "__main__":
144
+ # queue()๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋Œ€๊ธฐ์—ด ๊ด€๋ฆฌ๊ฐ€ ๊ฐ€๋Šฅํ•ด์ ธ ์„œ๋ฒ„๊ฐ€ ๋” ์•ˆ์ •์ ์œผ๋กœ ์‘๋‹ตํ•ฉ๋‹ˆ๋‹ค.
145
+ demo.queue().launch(server_name="0.0.0.0", server_port=7860)
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio==4.44.1
2
  pandas
3
  numpy<2.0.0
4
  tensorflow-cpu==2.15.0
 
1
+ gradio==5.1.0
2
  pandas
3
  numpy<2.0.0
4
  tensorflow-cpu==2.15.0