Besimplestudio commited on
Commit
ff70492
·
verified ·
1 Parent(s): 15ffcc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -66,7 +66,7 @@ def analyze_coloring_trends(search_query='adult coloring books', region='US'):
66
  # If DataFrame is empty, handle the case gracefully
67
  if df.empty:
68
  print("No data available for the selected category in this region.")
69
- return "No data available for the selected category in this region.", "", ""
70
 
71
  # Create bar chart visualization
72
  fig = px.bar(
@@ -123,4 +123,4 @@ iface = gr.Interface(
123
  )
124
 
125
  # Launch the interface
126
- iface.launch()
 
66
  # If DataFrame is empty, handle the case gracefully
67
  if df.empty:
68
  print("No data available for the selected category in this region.")
69
+ return gr.Plot.update(), "No data available for the selected category in this region.", ""
70
 
71
  # Create bar chart visualization
72
  fig = px.bar(
 
123
  )
124
 
125
  # Launch the interface
126
+ iface.launch()