singhsidhukuldeep commited on
Commit
897f09c
1 Parent(s): 96a127d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -30,9 +30,17 @@ if selected_source == sources[0]:
30
  df["Name"] = df.fullname
31
  df["username"] = df.name
32
  except Exception as exp:
33
- st.error(f'ERROR >> pd.read_parquet("hf://datasets/cfahlgren1/hub-stats/posts.parquet")\n{exp}', icon="🚨")
34
- selected_source == sources[1]
35
- st.info(f'This can be solved by "Space Restart"\nSwitching Sources for now...\nNew Source: {selected_source}', icon="ℹ️")
 
 
 
 
 
 
 
 
36
 
37
 
38
 
 
30
  df["Name"] = df.fullname
31
  df["username"] = df.name
32
  except Exception as exp:
33
+ st.error(f'''
34
+ ERROR>> in loading {selected_source}
35
+
36
+ >> {exp}''', icon="🚨")
37
+ selected_source = sources[1]
38
+ st.info(f'''
39
+ This can be solved by "Space Restart"
40
+
41
+ Switching Sources for now...
42
+
43
+ New Source: {selected_source}''', icon="ℹ️")
44
 
45
 
46