Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +36,9 @@ def generate_insights(df):
|
|
36 |
|
37 |
return insights
|
38 |
|
39 |
-
if df.empty:
|
40 |
-
|
41 |
-
|
42 |
|
43 |
# RAG setup using Hugging Face summarization
|
44 |
def generate_query_summary(df, query):
|
|
|
36 |
|
37 |
return insights
|
38 |
|
39 |
+
if df.empty:
|
40 |
+
st.error("The uploaded dataset is empty. Please upload a valid dataset.")
|
41 |
+
st.stop()
|
42 |
|
43 |
# RAG setup using Hugging Face summarization
|
44 |
def generate_query_summary(df, query):
|