[AUTOMATED] Migration to Gradio 6.0

#1
by multimodalart HF Staff - opened
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -2
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🌍
4
  colorFrom: indigo
5
  colorTo: gray
6
  sdk: gradio
7
- sdk_version: 5.38.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
4
  colorFrom: indigo
5
  colorTo: gray
6
  sdk: gradio
7
+ sdk_version: 6.0.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
app.py CHANGED
@@ -110,7 +110,7 @@ def process_uploaded_image(image, x, y, w, h):
110
  # ------------------------------
111
  # Gradio UI (Merged with Theme)
112
  # ------------------------------
113
- with gr.Blocks(theme=gr.themes.Soft(), title="Watermark Remover") as demo:
114
  gr.Markdown("<p style='text-align: center;'>Remove watermarks from both videos and images using AI detection or manual box selection.</p>")
115
 
116
  with gr.Tab("📹 Video Watermark Remover"):
@@ -194,4 +194,4 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Watermark Remover") as demo:
194
  )
195
 
196
  if __name__ == '__main__':
197
- demo.launch()
 
110
  # ------------------------------
111
  # Gradio UI (Merged with Theme)
112
  # ------------------------------
113
+ with gr.Blocks(title="Watermark Remover") as demo:
114
  gr.Markdown("<p style='text-align: center;'>Remove watermarks from both videos and images using AI detection or manual box selection.</p>")
115
 
116
  with gr.Tab("📹 Video Watermark Remover"):
 
194
  )
195
 
196
  if __name__ == '__main__':
197
+ demo.launch(theme=gr.themes.Soft())