Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|