Spaces:
Runtime error
Runtime error
Commit
·
63b1b2b
1
Parent(s):
86c975e
Upload folder using huggingface_hub
Browse files- README.md +2 -8
- __pycache__/gtest.cpython-39.pyc +0 -0
- flagged/Top Scores/tmpv_88z9oy.json +1 -0
- flagged/input_img/00d62b3d12767775bd10de85aa22319aa3329cd1/tmpea1n038n.jpg +0 -0
- flagged/input_img/1da8fa8dfe63499b1d2149436424d65c88781d96/tmpt315da_c.jpg +0 -0
- flagged/input_img/33ad8a74a256e26c40bd2ea44061db1d007b5ed1/tmp70e6q929.jpg +0 -0
- flagged/input_img/4786557589d32fa08af03fc87cce62cce34e7976/tmp3hd01gyz.jpg +0 -0
- flagged/log.csv +18 -0
- flagged/output/58e856a53c4f56dcc322f1c7e6fbf860b7e4d089/tmpjf4lras7.png +0 -0
- flagged/output/782d49a07faf277436a3665013d8fba2691bcd3f/tmplq3vqz47.png +0 -0
- flagged/output/c3b73f66c5c17f54679b711c986ae09364b62567/tmp_vb6fcww.png +0 -0
- flagged/output/e9871d60c389ff9cc50b6bcabb1571b12140c43c/tmp42s5m0ul.png +0 -0
- gtest.py +14 -0
- test.html +14 -0
README.md
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
|
4 |
-
colorFrom: blue
|
5 |
-
colorTo: pink
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.50.2
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: gradio
|
3 |
+
app_file: gtest.py
|
|
|
|
|
4 |
sdk: gradio
|
5 |
sdk_version: 3.50.2
|
|
|
|
|
6 |
---
|
|
|
|
__pycache__/gtest.cpython-39.pyc
ADDED
Binary file (531 Bytes). View file
|
|
flagged/Top Scores/tmpv_88z9oy.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
[34, 22, 3]
|
flagged/input_img/00d62b3d12767775bd10de85aa22319aa3329cd1/tmpea1n038n.jpg
ADDED
![]() |
flagged/input_img/1da8fa8dfe63499b1d2149436424d65c88781d96/tmpt315da_c.jpg
ADDED
![]() |
flagged/input_img/33ad8a74a256e26c40bd2ea44061db1d007b5ed1/tmp70e6q929.jpg
ADDED
![]() |
flagged/input_img/4786557589d32fa08af03fc87cce62cce34e7976/tmp3hd01gyz.jpg
ADDED
![]() |
flagged/log.csv
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name,output,flag,username,timestamp
|
2 |
+
安德森,Hello world 安德森!,,,2023-10-26 21:39:19.890113
|
3 |
+
安德森,Hello world 安德森!,,,2023-10-26 21:39:21.531116
|
4 |
+
安德森,Hello world 安德森!,,,2023-10-26 21:39:23.267112
|
5 |
+
,,,,2023-10-26 22:04:03.555761
|
6 |
+
,,,,2023-10-26 22:04:03.562763
|
7 |
+
,,,,2023-10-26 22:04:03.547765
|
8 |
+
,,,,2023-10-26 22:04:05.048766
|
9 |
+
,,,,2023-10-26 22:04:05.049768
|
10 |
+
,,,,2023-10-26 22:04:05.049768
|
11 |
+
D:\other\ainewage\Qwen-VL\learn\gradio\flagged\input_img\4786557589d32fa08af03fc87cce62cce34e7976\tmp3hd01gyz.jpg,D:\other\ainewage\Qwen-VL\learn\gradio\flagged\output\e9871d60c389ff9cc50b6bcabb1571b12140c43c\tmp42s5m0ul.png,,,2023-10-26 22:13:29.023764
|
12 |
+
D:\other\ainewage\Qwen-VL\learn\gradio\flagged\input_img\1da8fa8dfe63499b1d2149436424d65c88781d96\tmpt315da_c.jpg,D:\other\ainewage\Qwen-VL\learn\gradio\flagged\output\782d49a07faf277436a3665013d8fba2691bcd3f\tmplq3vqz47.png,,,2023-10-26 22:13:29.026763
|
13 |
+
D:\other\ainewage\Qwen-VL\learn\gradio\flagged\input_img\00d62b3d12767775bd10de85aa22319aa3329cd1\tmpea1n038n.jpg,D:\other\ainewage\Qwen-VL\learn\gradio\flagged\output\c3b73f66c5c17f54679b711c986ae09364b62567\tmp_vb6fcww.png,,,2023-10-26 22:13:29.027764
|
14 |
+
D:\other\ainewage\Qwen-VL\learn\gradio\flagged\input_img\33ad8a74a256e26c40bd2ea44061db1d007b5ed1\tmp70e6q929.jpg,D:\other\ainewage\Qwen-VL\learn\gradio\flagged\output\58e856a53c4f56dcc322f1c7e6fbf860b7e4d089\tmpjf4lras7.png,,,2023-10-26 22:13:29.027764
|
15 |
+
12,multiply,2,24,,,2023-10-26 22:49:48.964995
|
16 |
+
12,multiply,2,24,,,2023-10-26 22:49:48.965996
|
17 |
+
12,multiply,2,24,,,2023-10-26 22:49:48.966995
|
18 |
+
1,D:\other\ainewage\Qwen-VL\learn\gradio\flagged\Top Scores\tmpv_88z9oy.json,,,2023-10-27 06:33:27.402491
|
flagged/output/58e856a53c4f56dcc322f1c7e6fbf860b7e4d089/tmpjf4lras7.png
ADDED
![]() |
flagged/output/782d49a07faf277436a3665013d8fba2691bcd3f/tmplq3vqz47.png
ADDED
![]() |
flagged/output/c3b73f66c5c17f54679b711c986ae09364b62567/tmp_vb6fcww.png
ADDED
![]() |
flagged/output/e9871d60c389ff9cc50b6bcabb1571b12140c43c/tmp42s5m0ul.png
ADDED
![]() |
gtest.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
scores = []
|
3 |
+
def track_score(score):
|
4 |
+
scores.append(score)
|
5 |
+
#返回分数top3
|
6 |
+
top_scores = sorted(scores, reverse=True)[:3]
|
7 |
+
return top_scores
|
8 |
+
demo = gr.Interface(
|
9 |
+
track_score,
|
10 |
+
gr.Number(label="Score"),
|
11 |
+
gr.JSON(label="Top Scores"),
|
12 |
+
api_name="test"
|
13 |
+
)
|
14 |
+
demo.queue().launch(share=True)
|
test.html
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>Title</title>
|
6 |
+
<script
|
7 |
+
type="module"
|
8 |
+
src="https://gradio.s3-us-west-2.amazonaws.com/3.50.2/gradio.js"
|
9 |
+
></script>
|
10 |
+
</head>
|
11 |
+
<body>
|
12 |
+
<gradio-app src="https://c3a0eb1e1896ef2b2f.gradio.live"></gradio-app>
|
13 |
+
</body>
|
14 |
+
</html>
|