Shilpaj commited on
Commit
430f33e
·
1 Parent(s): 5177d9a

Fix: Runtime issue

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +1 -1
app.py CHANGED
@@ -195,10 +195,10 @@ def main():
195
  label="Click on any example to run GradCAM"
196
  )
197
 
198
- # Configure queue
199
- demo.queue(concurrency_count=1) # Limit concurrent processing
200
 
201
- # Launch with compatible parameters
202
  demo.launch(
203
  server_name="0.0.0.0",
204
  server_port=7860,
 
195
  label="Click on any example to run GradCAM"
196
  )
197
 
198
+ # Configure queue with new syntax for Gradio 5.x
199
+ demo.queue(max_size=1) # Limit to 1 concurrent job
200
 
201
+ # Launch with compatible parameters for Gradio 5.x
202
  demo.launch(
203
  server_name="0.0.0.0",
204
  server_port=7860,
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio==3.50.2
2
  grad-cam
3
  numpy<2.0.0
4
  torch==2.0.1
 
1
+ gradio==5.9.1
2
  grad-cam
3
  numpy<2.0.0
4
  torch==2.0.1