PragmaticPete commited on
Commit
6da67fa
·
verified ·
1 Parent(s): 117056d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,5 +1,3 @@
1
- # File: app.py
2
-
3
  import gradio as gr
4
  import pandas as pd
5
  import io
@@ -27,7 +25,7 @@ CONFIG = {
27
 
28
  def run_analysis(file, tone, gap_filter, custom_prompt):
29
  df = pd.read_csv(file.name)
30
- df.fillna("", inplace=True)
31
 
32
  quality_issues_df = summarize_data_quality(df)
33
 
@@ -99,4 +97,4 @@ iface = gr.Interface(
99
  )
100
 
101
  if __name__ == "__main__":
102
- iface.launch()
 
 
 
1
  import gradio as gr
2
  import pandas as pd
3
  import io
 
25
 
26
  def run_analysis(file, tone, gap_filter, custom_prompt):
27
  df = pd.read_csv(file.name)
28
+ df = df.convert_dtypes() # safer type conversion
29
 
30
  quality_issues_df = summarize_data_quality(df)
31
 
 
97
  )
98
 
99
  if __name__ == "__main__":
100
+ iface.launch(share=True)