Spaces:
Runtime error
Runtime error
updating gradio version in readme.md
Browse files- README.md +1 -1
- README.md.old +13 -0
- app.py +9 -10
- requirements.txt +1 -2
- requirements.txt.old +2 -0
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🏢
|
|
4 |
colorFrom: blue
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
4 |
colorFrom: blue
|
5 |
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.10.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
README.md.old
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Img Rec VIT
|
3 |
+
emoji: 🏢
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: yellow
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: 3.1.6
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
license: apache-2.0
|
11 |
+
---
|
12 |
+
|
13 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -1,17 +1,16 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
|
12 |
# works w/ gradio v4
|
13 |
|
14 |
-
|
15 |
-
demo = gr.load("google/vit-base-patch16-224", src="models") # no examples
|
16 |
|
17 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
examples = [
|
4 |
+
'ladybug.jpg',
|
5 |
+
'revolver.jpg',
|
6 |
+
'automotive.jpg',
|
7 |
+
'frog01.jpg',
|
8 |
+
'eagle.jpg'
|
9 |
+
]
|
|
|
10 |
|
11 |
# works w/ gradio v4
|
12 |
|
13 |
+
demo = gr.load("google/vit-base-patch16-224", src="models", examples=examples) # with examples
|
14 |
+
# demo = gr.load("google/vit-base-patch16-224", src="models") # no examples
|
15 |
|
16 |
demo.launch()
|
requirements.txt
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
|
2 |
-
gradio==4.8.0
|
|
|
1 |
+
gradio
|
|
requirements.txt.old
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
httpx==0.24.1
|
2 |
+
gradio==4.8.0
|