TEST
Browse files- .gitattributes +1 -0
- app.py +14 -0
- autov22fileid.json +3 -0
- fileid2json.json +3 -0
- filename2fileid.json +3 -0
- name2fileid.json +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.json filter=lfs diff=lfs merge=lfs text
|
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import json
|
3 |
+
from pathlib import Path
|
4 |
+
|
5 |
+
fileid2json = json.loads(Path("fileid2json.json").read_text())
|
6 |
+
|
7 |
+
def greet(query):
|
8 |
+
result = "Not found"
|
9 |
+
if query in fileid2json:
|
10 |
+
result = fileid2json[query.strip()]
|
11 |
+
return result
|
12 |
+
|
13 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
14 |
+
iface.launch()
|
autov22fileid.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83e8c2345358226015f46167b7db2b8679fe52a196bbdda5ffa732046d4eae1d
|
3 |
+
size 1501256
|
fileid2json.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1721d3cfc780d37437e5cdd46c47fc0614686a790bed4bd45e0e873e384361a0
|
3 |
+
size 82846964
|
filename2fileid.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:871cc43e3a31af8f08a8946c70878c1e5694af0af8e7a5c1026c87920919ad4e
|
3 |
+
size 2044320
|
name2fileid.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d7fe02437df0faa80dac8e1b0ecfaa327e2c0b087878d78b73b18b8680aea386
|
3 |
+
size 2297509
|