broadfield commited on
Commit
e81d9b7
·
verified ·
1 Parent(s): 90ea062

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,7 +57,7 @@ def save_data(t,m,l,n,w,p):
57
 
58
  title = t.replace('https://',"").replace('/',"_").replace('.',"_")
59
  im = mi.run_1(name=title,img_size=[256,256])
60
- im2=f"https://{user_name}-{repo_name}.static.hf.space/file=images/{title}_prob.png"
61
  #im3=f"{make_im.root}/images/{name}_prob.png"
62
  #uid=uuid.uuid4()
63
  with open('template.html','r') as file:
@@ -76,7 +76,7 @@ def save_data(t,m,l,n,w,p):
76
  repo_type="space",
77
  )
78
  api.upload_file(
79
- path_or_fileobj=im,
80
  path_in_repo=f"/images/{out_name}.png",
81
  repo_id=f'{user_name}/{repo_name}',
82
  token=token,
 
57
 
58
  title = t.replace('https://',"").replace('/',"_").replace('.',"_")
59
  im = mi.run_1(name=title,img_size=[256,256])
60
+ im2=f"https://{user_name}-{repo_name}.static.hf.space/images/{title}_prob.png"
61
  #im3=f"{make_im.root}/images/{name}_prob.png"
62
  #uid=uuid.uuid4()
63
  with open('template.html','r') as file:
 
76
  repo_type="space",
77
  )
78
  api.upload_file(
79
+ path_or_fileobj=im2,
80
  path_in_repo=f"/images/{out_name}.png",
81
  repo_id=f'{user_name}/{repo_name}',
82
  token=token,