MarkusStoll commited on
Commit
49d6ae9
1 Parent(s): f1e9f74

while true

Browse files
Files changed (1) hide show
  1. run.py +4 -2
run.py CHANGED
@@ -24,5 +24,7 @@ if __name__ == "__main__":
24
 
25
  df = dataset.to_pandas()
26
  df_show = df.drop(columns=['embedding', 'probabilities'])
27
- spotlight.show(df_show.sample(5000, random_state=1), port=7860, host="0.0.0.0",
28
- dtype={"image": spotlight.Image, "embedding_reduced": spotlight.Embedding}, allow_filebrowsing=False)
 
 
 
24
 
25
  df = dataset.to_pandas()
26
  df_show = df.drop(columns=['embedding', 'probabilities'])
27
+ while True:
28
+ view = spotlight.show(df_show.sample(5000, random_state=1), port=7860, host="0.0.0.0",
29
+ dtype={"image": spotlight.Image, "embedding_reduced": spotlight.Embedding}, allow_filebrowsing=False)
30
+ view.close()