charliebaby2023 commited on
Commit
2374dff
·
verified ·
1 Parent(s): 9c95830

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -17,8 +17,6 @@ from handle_models import default_models,load_fn,infer,gen_fn
17
  from externalmod import gr_Interface_load, save_image, randomize_seed
18
  from handlemodelradio import extend_choices,update_imgbox,random_choices
19
  #anything but huggingface_hub==0.26.2 will result in token error
20
- # Get all models owned by the user
21
- #models = api.list_models(author=username, token=HF_TOKEN)
22
  mymodels = list(api.list_models(author=username, token=HF_TOKEN))
23
  model_ids = [m.modelId for m in mymodels]
24
  if not model_ids:
@@ -30,10 +28,6 @@ def handle_model_selection(selected_models):
30
  return "✅ Selected models:\n" + "\n".join(selected_models)
31
 
32
 
33
- def get_current_time():
34
- now = datetime.now()
35
- current_time = now.strftime("%y-%m-%d %H:%M:%S")
36
- return current_time
37
  load_fn(models,HF_TOKEN)
38
 
39
 
 
17
  from externalmod import gr_Interface_load, save_image, randomize_seed
18
  from handlemodelradio import extend_choices,update_imgbox,random_choices
19
  #anything but huggingface_hub==0.26.2 will result in token error
 
 
20
  mymodels = list(api.list_models(author=username, token=HF_TOKEN))
21
  model_ids = [m.modelId for m in mymodels]
22
  if not model_ids:
 
28
  return "✅ Selected models:\n" + "\n".join(selected_models)
29
 
30
 
 
 
 
 
31
  load_fn(models,HF_TOKEN)
32
 
33