Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -233,8 +233,8 @@ def process_and_compare(file1, sheet1, file2, sheet2):
|
|
233 |
file_path = 'output/plot.png'
|
234 |
plt.savefig(file_path, format='png', bbox_inches='tight')
|
235 |
plt.close()
|
236 |
-
filtered_countries1 = [country for country in stored_df1.Country.values.tolist() if len(str(country)) < 20 and str(country) != "nan"]
|
237 |
-
filtered_countries2 = [country for country in stored_df2.Country.values.tolist() if len(str(country)) < 20 and str(country) != "nan"]
|
238 |
return file_path, gr.update(choices=filtered_countries1), gr.update(choices=filtered_countries2)
|
239 |
|
240 |
def find_sentences_with_keywords(text, keywords):
|
|
|
233 |
file_path = 'output/plot.png'
|
234 |
plt.savefig(file_path, format='png', bbox_inches='tight')
|
235 |
plt.close()
|
236 |
+
filtered_countries1 = [country for country in stored_df1.Country.values.tolist() if (len(str(country)) < 20 and str(country) != "nan")]
|
237 |
+
filtered_countries2 = [country for country in stored_df2.Country.values.tolist() if (len(str(country)) < 20 and str(country) != "nan")]
|
238 |
return file_path, gr.update(choices=filtered_countries1), gr.update(choices=filtered_countries2)
|
239 |
|
240 |
def find_sentences_with_keywords(text, keywords):
|