BorisEm Claude commited on
Commit
c654a4b
·
1 Parent(s): 8630d04

Update to latest Gradio version 4.44.0

Browse files

- Updated requirements.txt from gradio>=3.0.0 to gradio>=4.44.0
- Fixed elem_classes parameter syntax for Gradio 4.x compatibility
- Ensures access to latest Gradio features and performance improvements
- Maintains backward compatibility with existing interface code

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

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

Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +1 -1
app.py CHANGED
@@ -747,10 +747,10 @@ with gr.Blocks(css=css, title="HAT Super-Resolution for Satellite Images") as if
747
 
748
  with gr.Row():
749
  with gr.Column():
750
- input_image = gr.Image(type="pil", label="Input Satellite Image", elem_classes=["image-container"])
751
 
752
  with gr.Column():
753
- output_image = gr.Image(type="pil", label="Enhanced Output (4x Super-Resolution)", elem_classes=["image-container"])
754
 
755
  submit_btn = gr.Button("Enhance Image", variant="primary")
756
 
 
747
 
748
  with gr.Row():
749
  with gr.Column():
750
+ input_image = gr.Image(type="pil", label="Input Satellite Image", elem_classes="image-container")
751
 
752
  with gr.Column():
753
+ output_image = gr.Image(type="pil", label="Enhanced Output (4x Super-Resolution)", elem_classes="image-container")
754
 
755
  submit_btn = gr.Button("Enhance Image", variant="primary")
756
 
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
  torch>=1.13.0
2
  torchvision>=0.14.0
3
- gradio>=3.0.0
4
  numpy>=1.21.0
5
  Pillow>=8.0.0
6
  opencv-python>=4.5.0
 
1
  torch>=1.13.0
2
  torchvision>=0.14.0
3
+ gradio>=4.44.0
4
  numpy>=1.21.0
5
  Pillow>=8.0.0
6
  opencv-python>=4.5.0