Spaces:
Sleeping
Sleeping
Fix: Upgrade to Gradio 5.1.0 and enable queue to resolve TypeError and sharing issue on Docker
Browse files- README.md +2 -2
- app.py +2 -2
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -8,5 +8,5 @@ app_port: 7860
|
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
| 11 |
-
# ๐ก๏ธ KCB AI ์ ์ฉ ์๋ด ์์คํ
(
|
| 12 |
-
|
|
|
|
| 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 |
-
#
|
| 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==
|
| 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
|