ldhldh commited on
Commit
297634e
·
1 Parent(s): d6ea7aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -290,7 +290,8 @@ def fig2img(fig):
290
  img = Image.open(buf)
291
  return img
292
 
293
- chart_generator = GenerateChart(sample_data.get("gpus", {}), bubble_spacing=0.1, n_bins=5)
 
294
 
295
 
296
  st.title('Inference call')
 
290
  img = Image.open(buf)
291
  return img
292
 
293
+ if len(sample_data.get("gpus", {}))!=0:
294
+ chart_generator = GenerateChart(sample_data.get("gpus", {}), bubble_spacing=0.1, n_bins=5)
295
 
296
 
297
  st.title('Inference call')