Muyeong Kim Claude commited on
Commit
adf1fbc
·
1 Parent(s): c9c3410

Update to Gradio 5.0.0 for latest features and performance

Browse files

- Upgrade Gradio from 4.7.1 to 5.0.0 in requirements.txt
- Update SDK version in README.md metadata
- Remove deprecated Chatbot parameters (show_copy_button, bubble_full_width)
- Maintain compatibility with Gradio 5.0 API changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (4) hide show
  1. README.md +1 -1
  2. app.py +0 -2
  3. gradio_interface.py +0 -2
  4. requirements.txt +2 -2
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🚒
4
  colorFrom: red
5
  colorTo: yellow
6
  sdk: gradio
7
- sdk_version: "4.7.1"
8
  app_file: app.py
9
  pinned: false
10
  ---
 
4
  colorFrom: red
5
  colorTo: yellow
6
  sdk: gradio
7
+ sdk_version: "5.0.0"
8
  app_file: app.py
9
  pinned: false
10
  ---
app.py CHANGED
@@ -263,8 +263,6 @@ class HuggingFaceApp:
263
  # 채팅 인터페이스
264
  chatbot = gr.Chatbot(
265
  height=500,
266
- show_copy_button=True,
267
- bubble_full_width=False,
268
  placeholder="안녕하세요! 소방 복무관리에 대해 무엇이 궁금하신가요?",
269
  avatar_images=["👤", "🤖"]
270
  )
 
263
  # 채팅 인터페이스
264
  chatbot = gr.Chatbot(
265
  height=500,
 
 
266
  placeholder="안녕하세요! 소방 복무관리에 대해 무엇이 궁금하신가요?",
267
  avatar_images=["👤", "🤖"]
268
  )
gradio_interface.py CHANGED
@@ -180,8 +180,6 @@ class GradioInterface:
180
  with gr.Column(scale=4):
181
  chatbot = gr.Chatbot(
182
  height=500,
183
- show_copy_button=True,
184
- bubble_full_width=False,
185
  avatar_images=["👤", "🤖"]
186
  )
187
  msg = gr.Textbox(
 
180
  with gr.Column(scale=4):
181
  chatbot = gr.Chatbot(
182
  height=500,
 
 
183
  avatar_images=["👤", "🤖"]
184
  )
185
  msg = gr.Textbox(
requirements.txt CHANGED
@@ -15,8 +15,8 @@ faiss-cpu>=1.7.4
15
  chromadb>=0.4.18
16
 
17
  # 웹 인터페이스
18
- gradio>=4.7.1
19
- streamlit>=1.28.0
20
 
21
  # 문서 처리
22
  pypdf>=3.17.0
 
15
  chromadb>=0.4.18
16
 
17
  # 웹 인터페이스
18
+ gradio>=5.0.0
19
+ streamlit>=1.40.0
20
 
21
  # 문서 처리
22
  pypdf>=3.17.0