Spaces:
Sleeping
Sleeping
efengx
commited on
Commit
·
276ebff
1
Parent(s):
4eae44a
fix: update
Browse files- app.py +3 -3
- fengx_launch.ipynb +17 -2
app.py
CHANGED
@@ -53,11 +53,11 @@ def render():
|
|
53 |
if getModel('imageInfo') != "":
|
54 |
def callback(output):
|
55 |
print("output=", output)
|
56 |
-
updateModel("imageHeight", output
|
57 |
-
updateModel("imageObjectHeight", output
|
58 |
c1, c2 = st.columns([0.7, 0.3])
|
59 |
with c1.container():
|
60 |
-
imageInput = Image.open(output
|
61 |
st.image(imageInput)
|
62 |
with c2.container():
|
63 |
st.button("delete image", on_click=changeDelete)
|
|
|
53 |
if getModel('imageInfo') != "":
|
54 |
def callback(output):
|
55 |
print("output=", output)
|
56 |
+
updateModel("imageHeight", output["imageHeight"])
|
57 |
+
updateModel("imageObjectHeight", output["objectHeight"])
|
58 |
c1, c2 = st.columns([0.7, 0.3])
|
59 |
with c1.container():
|
60 |
+
imageInput = Image.open(output["imageOutput"])
|
61 |
st.image(imageInput)
|
62 |
with c2.container():
|
63 |
st.button("delete image", on_click=changeDelete)
|
fengx_launch.ipynb
CHANGED
@@ -33,9 +33,24 @@
|
|
33 |
},
|
34 |
{
|
35 |
"cell_type": "code",
|
36 |
-
"execution_count":
|
37 |
"metadata": {},
|
38 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
"source": [
|
40 |
"# 任务:提交代码到git仓库\n",
|
41 |
"!git push origin main"
|
|
|
33 |
},
|
34 |
{
|
35 |
"cell_type": "code",
|
36 |
+
"execution_count": 5,
|
37 |
"metadata": {},
|
38 |
+
"outputs": [
|
39 |
+
{
|
40 |
+
"name": "stdout",
|
41 |
+
"output_type": "stream",
|
42 |
+
"text": [
|
43 |
+
"Enumerating objects: 9, done.\n",
|
44 |
+
"Counting objects: 100% (9/9), done.\n",
|
45 |
+
"Delta compression using up to 8 threads\n",
|
46 |
+
"Compressing objects: 100% (5/5), done.\n",
|
47 |
+
"Writing objects: 100% (5/5), 426 bytes | 426.00 KiB/s, done.\n",
|
48 |
+
"Total 5 (delta 4), reused 0 (delta 0), pack-reused 0\n",
|
49 |
+
"To https://huggingface.co/spaces/rjx/rjxai_image_identification\n",
|
50 |
+
" adea420..4eae44a main -> main\n"
|
51 |
+
]
|
52 |
+
}
|
53 |
+
],
|
54 |
"source": [
|
55 |
"# 任务:提交代码到git仓库\n",
|
56 |
"!git push origin main"
|