Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import numpy as np
|
| 2 |
import random
|
| 3 |
|
| 4 |
-
import
|
|
|
|
| 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 |
|