xinyu1205 commited on
Commit
5a4d9e1
1 Parent(s): f805b68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import numpy as np
2
  import random
3
 
4
- import torch
 
5
  import torchvision.transforms as transforms
6
 
7
  from PIL import Image
@@ -70,7 +71,7 @@ inputs = [
70
  gr.inputs.Radio(choices=['Recognize Anything Model',"Tag2Text Model"],
71
  type="value",
72
  default="Recognize Anything Model",
73
- label="Model" ),
74
  gr.inputs.Textbox(lines=2, label="User Specified Tags (Optional, Enter with commas, Currently only Tag2Text is supported)")
75
  ]
76
 
 
1
  import numpy as np
2
  import random
3
 
4
+ import
5
+ torch
6
  import torchvision.transforms as transforms
7
 
8
  from PIL import Image
 
71
  gr.inputs.Radio(choices=['Recognize Anything Model',"Tag2Text Model"],
72
  type="value",
73
  default="Recognize Anything Model",
74
+ label="Select Model" ),
75
  gr.inputs.Textbox(lines=2, label="User Specified Tags (Optional, Enter with commas, Currently only Tag2Text is supported)")
76
  ]
77