Spaces:
Running
Running
Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .DS_Store +0 -0
- .gitattributes +19 -0
- .idea/.gitignore +3 -0
- .idea/gradioapp.iml +10 -0
- .idea/inspectionProfiles/Project_Default.xml +16 -0
- .idea/inspectionProfiles/profiles_settings.xml +6 -0
- .idea/misc.xml +4 -0
- .idea/modules.xml +8 -0
- .idea/workspace.xml +68 -0
- README.md +3 -9
- __pycache__/main.cpython-311.pyc +0 -0
- app.py +3 -0
- flagged/log.csv +2 -0
- main.py +17 -0
- venv/.DS_Store +0 -0
- venv/.gitignore +2 -0
- venv/bin/activate +83 -0
- venv/bin/activate.csh +55 -0
- venv/bin/activate.fish +100 -0
- venv/bin/activate.nu +92 -0
- venv/bin/activate.ps1 +60 -0
- venv/bin/activate_this.py +31 -0
- venv/bin/deactivate.nu +32 -0
- venv/bin/dotenv +8 -0
- venv/bin/email_validator +8 -0
- venv/bin/f2py +8 -0
- venv/bin/fastapi +8 -0
- venv/bin/fonttools +8 -0
- venv/bin/gradio +8 -0
- venv/bin/httpx +8 -0
- venv/bin/huggingface-cli +8 -0
- venv/bin/jsonschema +8 -0
- venv/bin/markdown-it +8 -0
- venv/bin/normalizer +8 -0
- venv/bin/pip +8 -0
- venv/bin/pip-3.11 +8 -0
- venv/bin/pip3 +8 -0
- venv/bin/pip3.11 +8 -0
- venv/bin/pyftmerge +8 -0
- venv/bin/pyftsubset +8 -0
- venv/bin/pygmentize +8 -0
- venv/bin/python +0 -0
- venv/bin/python3 +0 -0
- venv/bin/python3.11 +0 -0
- venv/bin/ruff +3 -0
- venv/bin/tqdm +8 -0
- venv/bin/ttx +8 -0
- venv/bin/typer +8 -0
- venv/bin/upload_theme +8 -0
- venv/bin/uvicorn +8 -0
.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
.gitattributes
CHANGED
@@ -33,3 +33,22 @@ 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 |
+
venv/bin/ruff filter=lfs diff=lfs merge=lfs -text
|
37 |
+
venv/lib/python3.11/site-packages/PIL/.dylibs/libfreetype.6.dylib filter=lfs diff=lfs merge=lfs -text
|
38 |
+
venv/lib/python3.11/site-packages/PIL/.dylibs/libharfbuzz.0.dylib filter=lfs diff=lfs merge=lfs -text
|
39 |
+
venv/lib/python3.11/site-packages/altair/vegalite/v5/schema/__pycache__/channels.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
40 |
+
venv/lib/python3.11/site-packages/altair/vegalite/v5/schema/__pycache__/core.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
41 |
+
venv/lib/python3.11/site-packages/fontTools/misc/bezierTools.cpython-311-darwin.so filter=lfs diff=lfs merge=lfs -text
|
42 |
+
venv/lib/python3.11/site-packages/gradio/frpc_darwin_arm64_v0.2 filter=lfs diff=lfs merge=lfs -text
|
43 |
+
venv/lib/python3.11/site-packages/gradio/templates/frontend/assets/Index-JC7evlol.js.map filter=lfs diff=lfs merge=lfs -text
|
44 |
+
venv/lib/python3.11/site-packages/numpy/.dylibs/libgfortran.5.dylib filter=lfs diff=lfs merge=lfs -text
|
45 |
+
venv/lib/python3.11/site-packages/numpy/.dylibs/libopenblas64_.0.dylib filter=lfs diff=lfs merge=lfs -text
|
46 |
+
venv/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311-darwin.so filter=lfs diff=lfs merge=lfs -text
|
47 |
+
venv/lib/python3.11/site-packages/pandas/_libs/algos.cpython-311-darwin.so filter=lfs diff=lfs merge=lfs -text
|
48 |
+
venv/lib/python3.11/site-packages/pandas/_libs/groupby.cpython-311-darwin.so filter=lfs diff=lfs merge=lfs -text
|
49 |
+
venv/lib/python3.11/site-packages/pandas/_libs/hashtable.cpython-311-darwin.so filter=lfs diff=lfs merge=lfs -text
|
50 |
+
venv/lib/python3.11/site-packages/pandas/_libs/interval.cpython-311-darwin.so filter=lfs diff=lfs merge=lfs -text
|
51 |
+
venv/lib/python3.11/site-packages/pandas/_libs/join.cpython-311-darwin.so filter=lfs diff=lfs merge=lfs -text
|
52 |
+
venv/lib/python3.11/site-packages/pydantic_core/_pydantic_core.cpython-311-darwin.so filter=lfs diff=lfs merge=lfs -text
|
53 |
+
venv/lib/python3.11/site-packages/uvloop/loop.cpython-311-darwin.so filter=lfs diff=lfs merge=lfs -text
|
54 |
+
venv/lib/python3.11/site-packages/watchfiles/_rust_notify.cpython-311-darwin.so filter=lfs diff=lfs merge=lfs -text
|
.idea/.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
# Default ignored files
|
2 |
+
/shelf/
|
3 |
+
/workspace.xml
|
.idea/gradioapp.iml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<module type="PYTHON_MODULE" version="4">
|
3 |
+
<component name="NewModuleRootManager">
|
4 |
+
<content url="file://$MODULE_DIR$">
|
5 |
+
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
6 |
+
</content>
|
7 |
+
<orderEntry type="inheritedJdk" />
|
8 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
9 |
+
</component>
|
10 |
+
</module>
|
.idea/inspectionProfiles/Project_Default.xml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<component name="InspectionProjectProfileManager">
|
2 |
+
<profile version="1.0">
|
3 |
+
<option name="myName" value="Project Default" />
|
4 |
+
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
5 |
+
<option name="ignoredPackages">
|
6 |
+
<value>
|
7 |
+
<list size="3">
|
8 |
+
<item index="0" class="java.lang.String" itemvalue="transformers" />
|
9 |
+
<item index="1" class="java.lang.String" itemvalue="huggingface-hub" />
|
10 |
+
<item index="2" class="java.lang.String" itemvalue="datasets" />
|
11 |
+
</list>
|
12 |
+
</value>
|
13 |
+
</option>
|
14 |
+
</inspection_tool>
|
15 |
+
</profile>
|
16 |
+
</component>
|
.idea/inspectionProfiles/profiles_settings.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<component name="InspectionProjectProfileManager">
|
2 |
+
<settings>
|
3 |
+
<option name="USE_PROJECT_PROFILE" value="false" />
|
4 |
+
<version value="1.0" />
|
5 |
+
</settings>
|
6 |
+
</component>
|
.idea/misc.xml
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (gradioapp)" project-jdk-type="Python SDK" />
|
4 |
+
</project>
|
.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="ProjectModuleManager">
|
4 |
+
<modules>
|
5 |
+
<module fileurl="file://$PROJECT_DIR$/.idea/gradioapp.iml" filepath="$PROJECT_DIR$/.idea/gradioapp.iml" />
|
6 |
+
</modules>
|
7 |
+
</component>
|
8 |
+
</project>
|
.idea/workspace.xml
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="AutoImportSettings">
|
4 |
+
<option name="autoReloadType" value="SELECTIVE" />
|
5 |
+
</component>
|
6 |
+
<component name="ChangeListManager">
|
7 |
+
<list default="true" id="83aae070-2426-48a6-9d2f-68f57446b3d9" name="Changes" comment="" />
|
8 |
+
<option name="SHOW_DIALOG" value="false" />
|
9 |
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
10 |
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
11 |
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
12 |
+
</component>
|
13 |
+
<component name="FileTemplateManagerImpl">
|
14 |
+
<option name="RECENT_TEMPLATES">
|
15 |
+
<list>
|
16 |
+
<option value="Python Script" />
|
17 |
+
</list>
|
18 |
+
</option>
|
19 |
+
</component>
|
20 |
+
<component name="MarkdownSettingsMigration">
|
21 |
+
<option name="stateVersion" value="1" />
|
22 |
+
</component>
|
23 |
+
<component name="ProjectId" id="2gPvQaTZU4mio8cyiCqtVWjrRzU" />
|
24 |
+
<component name="ProjectViewState">
|
25 |
+
<option name="hideEmptyMiddlePackages" value="true" />
|
26 |
+
<option name="showLibraryContents" value="true" />
|
27 |
+
</component>
|
28 |
+
<component name="PropertiesComponent">{
|
29 |
+
"keyToString": {
|
30 |
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
31 |
+
"settings.editor.selected.configurable": "editor.preferences.fonts.default"
|
32 |
+
}
|
33 |
+
}</component>
|
34 |
+
<component name="RunManager">
|
35 |
+
<configuration name="main" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
|
36 |
+
<module name="gradioapp" />
|
37 |
+
<option name="INTERPRETER_OPTIONS" value="" />
|
38 |
+
<option name="PARENT_ENVS" value="true" />
|
39 |
+
<envs>
|
40 |
+
<env name="PYTHONUNBUFFERED" value="1" />
|
41 |
+
</envs>
|
42 |
+
<option name="SDK_HOME" value="" />
|
43 |
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
44 |
+
<option name="IS_MODULE_SDK" value="true" />
|
45 |
+
<option name="ADD_CONTENT_ROOTS" value="true" />
|
46 |
+
<option name="ADD_SOURCE_ROOTS" value="true" />
|
47 |
+
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" />
|
48 |
+
<option name="PARAMETERS" value="" />
|
49 |
+
<option name="SHOW_COMMAND_LINE" value="false" />
|
50 |
+
<option name="EMULATE_TERMINAL" value="false" />
|
51 |
+
<option name="MODULE_MODE" value="false" />
|
52 |
+
<option name="REDIRECT_INPUT" value="false" />
|
53 |
+
<option name="INPUT_FILE" value="" />
|
54 |
+
<method v="2" />
|
55 |
+
</configuration>
|
56 |
+
</component>
|
57 |
+
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
58 |
+
<component name="TaskManager">
|
59 |
+
<task active="true" id="Default" summary="Default task">
|
60 |
+
<changelist id="83aae070-2426-48a6-9d2f-68f57446b3d9" name="Changes" comment="" />
|
61 |
+
<created>1715612012291</created>
|
62 |
+
<option name="number" value="Default" />
|
63 |
+
<option name="presentableId" value="Default" />
|
64 |
+
<updated>1715612012291</updated>
|
65 |
+
</task>
|
66 |
+
<servers />
|
67 |
+
</component>
|
68 |
+
</project>
|
README.md
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
|
4 |
-
colorFrom: red
|
5 |
-
colorTo: red
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.31.
|
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: gradioapp
|
3 |
+
app_file: main.py
|
|
|
|
|
4 |
sdk: gradio
|
5 |
+
sdk_version: 4.31.0
|
|
|
|
|
6 |
---
|
|
|
|
__pycache__/main.cpython-311.pyc
ADDED
Binary file (606 Bytes). View file
|
|
app.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
print(gr.__version__)
|
flagged/log.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
name,intensity,output,flag,username,timestamp
|
2 |
+
Phi,20,"Hello, Phi!!!!!!!!!!!!!!!!!!!!",,,2024-05-13 22:42:25.996776
|
main.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This is a sample Python script.
|
2 |
+
|
3 |
+
# Press ⌃R to execute it or replace it with your code.
|
4 |
+
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
|
5 |
+
|
6 |
+
import gradio as gr
|
7 |
+
|
8 |
+
def greet(name, intensity):
|
9 |
+
return "Hello........., " + name + "!" * int(intensity)
|
10 |
+
|
11 |
+
demo = gr.Interface(
|
12 |
+
fn=greet,
|
13 |
+
inputs=["text", "slider"],
|
14 |
+
outputs=["text"],
|
15 |
+
)
|
16 |
+
|
17 |
+
demo.launch(share=False)
|
venv/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
venv/.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
# created by virtualenv automatically
|
2 |
+
*
|
venv/bin/activate
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file must be used with "source bin/activate" *from bash*
|
2 |
+
# you cannot run it directly
|
3 |
+
|
4 |
+
|
5 |
+
if [ "${BASH_SOURCE-}" = "$0" ]; then
|
6 |
+
echo "You must source this script: \$ source $0" >&2
|
7 |
+
exit 33
|
8 |
+
fi
|
9 |
+
|
10 |
+
deactivate () {
|
11 |
+
unset -f pydoc >/dev/null 2>&1 || true
|
12 |
+
|
13 |
+
# reset old environment variables
|
14 |
+
# ! [ -z ${VAR+_} ] returns true if VAR is declared at all
|
15 |
+
if ! [ -z "${_OLD_VIRTUAL_PATH:+_}" ] ; then
|
16 |
+
PATH="$_OLD_VIRTUAL_PATH"
|
17 |
+
export PATH
|
18 |
+
unset _OLD_VIRTUAL_PATH
|
19 |
+
fi
|
20 |
+
if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then
|
21 |
+
PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
|
22 |
+
export PYTHONHOME
|
23 |
+
unset _OLD_VIRTUAL_PYTHONHOME
|
24 |
+
fi
|
25 |
+
|
26 |
+
# The hash command must be called to get it to forget past
|
27 |
+
# commands. Without forgetting past commands the $PATH changes
|
28 |
+
# we made may not be respected
|
29 |
+
hash -r 2>/dev/null
|
30 |
+
|
31 |
+
if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then
|
32 |
+
PS1="$_OLD_VIRTUAL_PS1"
|
33 |
+
export PS1
|
34 |
+
unset _OLD_VIRTUAL_PS1
|
35 |
+
fi
|
36 |
+
|
37 |
+
unset VIRTUAL_ENV
|
38 |
+
if [ ! "${1-}" = "nondestructive" ] ; then
|
39 |
+
# Self destruct!
|
40 |
+
unset -f deactivate
|
41 |
+
fi
|
42 |
+
}
|
43 |
+
|
44 |
+
# unset irrelevant variables
|
45 |
+
deactivate nondestructive
|
46 |
+
|
47 |
+
VIRTUAL_ENV='/Users/phi.tran/Development/learning/gradioapp/venv'
|
48 |
+
if ([ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]) && $(command -v cygpath &> /dev/null) ; then
|
49 |
+
VIRTUAL_ENV=$(cygpath -u "$VIRTUAL_ENV")
|
50 |
+
fi
|
51 |
+
export VIRTUAL_ENV
|
52 |
+
|
53 |
+
_OLD_VIRTUAL_PATH="$PATH"
|
54 |
+
PATH="$VIRTUAL_ENV/bin:$PATH"
|
55 |
+
export PATH
|
56 |
+
|
57 |
+
# unset PYTHONHOME if set
|
58 |
+
if ! [ -z "${PYTHONHOME+_}" ] ; then
|
59 |
+
_OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
|
60 |
+
unset PYTHONHOME
|
61 |
+
fi
|
62 |
+
|
63 |
+
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
|
64 |
+
_OLD_VIRTUAL_PS1="${PS1-}"
|
65 |
+
if [ "x" != x ] ; then
|
66 |
+
PS1="() ${PS1-}"
|
67 |
+
else
|
68 |
+
PS1="(`basename \"$VIRTUAL_ENV\"`) ${PS1-}"
|
69 |
+
fi
|
70 |
+
export PS1
|
71 |
+
fi
|
72 |
+
|
73 |
+
# Make sure to unalias pydoc if it's already there
|
74 |
+
alias pydoc 2>/dev/null >/dev/null && unalias pydoc || true
|
75 |
+
|
76 |
+
pydoc () {
|
77 |
+
python -m pydoc "$@"
|
78 |
+
}
|
79 |
+
|
80 |
+
# The hash command must be called to get it to forget past
|
81 |
+
# commands. Without forgetting past commands the $PATH changes
|
82 |
+
# we made may not be respected
|
83 |
+
hash -r 2>/dev/null
|
venv/bin/activate.csh
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file must be used with "source bin/activate.csh" *from csh*.
|
2 |
+
# You cannot run it directly.
|
3 |
+
# Created by Davide Di Blasi <[email protected]>.
|
4 |
+
|
5 |
+
set newline='\
|
6 |
+
'
|
7 |
+
|
8 |
+
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH:q" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT:q" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
|
9 |
+
|
10 |
+
# Unset irrelevant variables.
|
11 |
+
deactivate nondestructive
|
12 |
+
|
13 |
+
setenv VIRTUAL_ENV '/Users/phi.tran/Development/learning/gradioapp/venv'
|
14 |
+
|
15 |
+
set _OLD_VIRTUAL_PATH="$PATH:q"
|
16 |
+
setenv PATH "$VIRTUAL_ENV:q/bin:$PATH:q"
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
if ('' != "") then
|
21 |
+
set env_name = '() '
|
22 |
+
else
|
23 |
+
set env_name = '('"$VIRTUAL_ENV:t:q"') '
|
24 |
+
endif
|
25 |
+
|
26 |
+
if ( $?VIRTUAL_ENV_DISABLE_PROMPT ) then
|
27 |
+
if ( $VIRTUAL_ENV_DISABLE_PROMPT == "" ) then
|
28 |
+
set do_prompt = "1"
|
29 |
+
else
|
30 |
+
set do_prompt = "0"
|
31 |
+
endif
|
32 |
+
else
|
33 |
+
set do_prompt = "1"
|
34 |
+
endif
|
35 |
+
|
36 |
+
if ( $do_prompt == "1" ) then
|
37 |
+
# Could be in a non-interactive environment,
|
38 |
+
# in which case, $prompt is undefined and we wouldn't
|
39 |
+
# care about the prompt anyway.
|
40 |
+
if ( $?prompt ) then
|
41 |
+
set _OLD_VIRTUAL_PROMPT="$prompt:q"
|
42 |
+
if ( "$prompt:q" =~ *"$newline:q"* ) then
|
43 |
+
:
|
44 |
+
else
|
45 |
+
set prompt = "$env_name:q$prompt:q"
|
46 |
+
endif
|
47 |
+
endif
|
48 |
+
endif
|
49 |
+
|
50 |
+
unset env_name
|
51 |
+
unset do_prompt
|
52 |
+
|
53 |
+
alias pydoc python -m pydoc
|
54 |
+
|
55 |
+
rehash
|
venv/bin/activate.fish
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file must be used using `source bin/activate.fish` *within a running fish ( http://fishshell.com ) session*.
|
2 |
+
# Do not run it directly.
|
3 |
+
|
4 |
+
function _bashify_path -d "Converts a fish path to something bash can recognize"
|
5 |
+
set fishy_path $argv
|
6 |
+
set bashy_path $fishy_path[1]
|
7 |
+
for path_part in $fishy_path[2..-1]
|
8 |
+
set bashy_path "$bashy_path:$path_part"
|
9 |
+
end
|
10 |
+
echo $bashy_path
|
11 |
+
end
|
12 |
+
|
13 |
+
function _fishify_path -d "Converts a bash path to something fish can recognize"
|
14 |
+
echo $argv | tr ':' '\n'
|
15 |
+
end
|
16 |
+
|
17 |
+
function deactivate -d 'Exit virtualenv mode and return to the normal environment.'
|
18 |
+
# reset old environment variables
|
19 |
+
if test -n "$_OLD_VIRTUAL_PATH"
|
20 |
+
# https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling
|
21 |
+
if test (echo $FISH_VERSION | head -c 1) -lt 3
|
22 |
+
set -gx PATH (_fishify_path "$_OLD_VIRTUAL_PATH")
|
23 |
+
else
|
24 |
+
set -gx PATH $_OLD_VIRTUAL_PATH
|
25 |
+
end
|
26 |
+
set -e _OLD_VIRTUAL_PATH
|
27 |
+
end
|
28 |
+
|
29 |
+
if test -n "$_OLD_VIRTUAL_PYTHONHOME"
|
30 |
+
set -gx PYTHONHOME "$_OLD_VIRTUAL_PYTHONHOME"
|
31 |
+
set -e _OLD_VIRTUAL_PYTHONHOME
|
32 |
+
end
|
33 |
+
|
34 |
+
if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
|
35 |
+
and functions -q _old_fish_prompt
|
36 |
+
# Set an empty local `$fish_function_path` to allow the removal of `fish_prompt` using `functions -e`.
|
37 |
+
set -l fish_function_path
|
38 |
+
|
39 |
+
# Erase virtualenv's `fish_prompt` and restore the original.
|
40 |
+
functions -e fish_prompt
|
41 |
+
functions -c _old_fish_prompt fish_prompt
|
42 |
+
functions -e _old_fish_prompt
|
43 |
+
set -e _OLD_FISH_PROMPT_OVERRIDE
|
44 |
+
end
|
45 |
+
|
46 |
+
set -e VIRTUAL_ENV
|
47 |
+
|
48 |
+
if test "$argv[1]" != 'nondestructive'
|
49 |
+
# Self-destruct!
|
50 |
+
functions -e pydoc
|
51 |
+
functions -e deactivate
|
52 |
+
functions -e _bashify_path
|
53 |
+
functions -e _fishify_path
|
54 |
+
end
|
55 |
+
end
|
56 |
+
|
57 |
+
# Unset irrelevant variables.
|
58 |
+
deactivate nondestructive
|
59 |
+
|
60 |
+
set -gx VIRTUAL_ENV '/Users/phi.tran/Development/learning/gradioapp/venv'
|
61 |
+
|
62 |
+
# https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling
|
63 |
+
if test (echo $FISH_VERSION | head -c 1) -lt 3
|
64 |
+
set -gx _OLD_VIRTUAL_PATH (_bashify_path $PATH)
|
65 |
+
else
|
66 |
+
set -gx _OLD_VIRTUAL_PATH $PATH
|
67 |
+
end
|
68 |
+
set -gx PATH "$VIRTUAL_ENV"'/bin' $PATH
|
69 |
+
|
70 |
+
# Unset `$PYTHONHOME` if set.
|
71 |
+
if set -q PYTHONHOME
|
72 |
+
set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
|
73 |
+
set -e PYTHONHOME
|
74 |
+
end
|
75 |
+
|
76 |
+
function pydoc
|
77 |
+
python -m pydoc $argv
|
78 |
+
end
|
79 |
+
|
80 |
+
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
|
81 |
+
# Copy the current `fish_prompt` function as `_old_fish_prompt`.
|
82 |
+
functions -c fish_prompt _old_fish_prompt
|
83 |
+
|
84 |
+
function fish_prompt
|
85 |
+
# Run the user's prompt first; it might depend on (pipe)status.
|
86 |
+
set -l prompt (_old_fish_prompt)
|
87 |
+
|
88 |
+
# Prompt override provided?
|
89 |
+
# If not, just prepend the environment name.
|
90 |
+
if test -n ''
|
91 |
+
printf '(%s) ' ''
|
92 |
+
else
|
93 |
+
printf '(%s) ' (basename "$VIRTUAL_ENV")
|
94 |
+
end
|
95 |
+
|
96 |
+
string join -- \n $prompt # handle multi-line prompts
|
97 |
+
end
|
98 |
+
|
99 |
+
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
|
100 |
+
end
|
venv/bin/activate.nu
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This command prepares the required environment variables
|
2 |
+
def-env activate-virtualenv [] {
|
3 |
+
def is-string [x] {
|
4 |
+
($x | describe) == 'string'
|
5 |
+
}
|
6 |
+
|
7 |
+
def has-env [name: string] {
|
8 |
+
$name in (env).name
|
9 |
+
}
|
10 |
+
|
11 |
+
let is_windows = ((sys).host.name | str downcase) == 'windows'
|
12 |
+
let virtual_env = '/Users/phi.tran/Development/learning/gradioapp/venv'
|
13 |
+
let bin = 'bin'
|
14 |
+
let path_sep = ':'
|
15 |
+
let path_name = if $is_windows {
|
16 |
+
if (has-env 'Path') {
|
17 |
+
'Path'
|
18 |
+
} else {
|
19 |
+
'PATH'
|
20 |
+
}
|
21 |
+
} else {
|
22 |
+
'PATH'
|
23 |
+
}
|
24 |
+
|
25 |
+
let old_path = (
|
26 |
+
if $is_windows {
|
27 |
+
if (has-env 'Path') {
|
28 |
+
$env.Path
|
29 |
+
} else {
|
30 |
+
$env.PATH
|
31 |
+
}
|
32 |
+
} else {
|
33 |
+
$env.PATH
|
34 |
+
} | if (is-string $in) {
|
35 |
+
# if Path/PATH is a string, make it a list
|
36 |
+
$in | split row $path_sep | path expand
|
37 |
+
} else {
|
38 |
+
$in
|
39 |
+
}
|
40 |
+
)
|
41 |
+
|
42 |
+
let venv_path = ([$virtual_env $bin] | path join)
|
43 |
+
let new_path = ($old_path | prepend $venv_path | str collect $path_sep)
|
44 |
+
|
45 |
+
# Creating the new prompt for the session
|
46 |
+
let virtual_prompt = if ('' == '') {
|
47 |
+
$'(char lparen)($virtual_env | path basename)(char rparen) '
|
48 |
+
} else {
|
49 |
+
'() '
|
50 |
+
}
|
51 |
+
|
52 |
+
# Back up the old prompt builder
|
53 |
+
let old_prompt_command = if (has-env 'VIRTUAL_ENV') && (has-env '_OLD_PROMPT_COMMAND') {
|
54 |
+
$env._OLD_PROMPT_COMMAND
|
55 |
+
} else {
|
56 |
+
if (has-env 'PROMPT_COMMAND') {
|
57 |
+
$env.PROMPT_COMMAND
|
58 |
+
} else {
|
59 |
+
''
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
# If there is no default prompt, then only the env is printed in the prompt
|
64 |
+
let new_prompt = if (has-env 'PROMPT_COMMAND') {
|
65 |
+
if ($old_prompt_command | describe) == 'block' {
|
66 |
+
{ $'($virtual_prompt)(do $old_prompt_command)' }
|
67 |
+
} else {
|
68 |
+
{ $'($virtual_prompt)($old_prompt_command)' }
|
69 |
+
}
|
70 |
+
} else {
|
71 |
+
{ $'($virtual_prompt)' }
|
72 |
+
}
|
73 |
+
|
74 |
+
# Environment variables that will be batched loaded to the virtual env
|
75 |
+
let new_env = {
|
76 |
+
$path_name : $new_path
|
77 |
+
VIRTUAL_ENV : $virtual_env
|
78 |
+
_OLD_VIRTUAL_PATH : ($old_path | str collect $path_sep)
|
79 |
+
_OLD_PROMPT_COMMAND : $old_prompt_command
|
80 |
+
PROMPT_COMMAND : $new_prompt
|
81 |
+
VIRTUAL_PROMPT : $virtual_prompt
|
82 |
+
}
|
83 |
+
|
84 |
+
# Activate the environment variables
|
85 |
+
load-env $new_env
|
86 |
+
}
|
87 |
+
|
88 |
+
# Activate the virtualenv
|
89 |
+
activate-virtualenv
|
90 |
+
|
91 |
+
alias pydoc = python -m pydoc
|
92 |
+
alias deactivate = source '/Users/phi.tran/Development/learning/gradioapp/venv/bin/deactivate.nu'
|
venv/bin/activate.ps1
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$script:THIS_PATH = $myinvocation.mycommand.path
|
2 |
+
$script:BASE_DIR = Split-Path (Resolve-Path "$THIS_PATH/..") -Parent
|
3 |
+
|
4 |
+
function global:deactivate([switch] $NonDestructive) {
|
5 |
+
if (Test-Path variable:_OLD_VIRTUAL_PATH) {
|
6 |
+
$env:PATH = $variable:_OLD_VIRTUAL_PATH
|
7 |
+
Remove-Variable "_OLD_VIRTUAL_PATH" -Scope global
|
8 |
+
}
|
9 |
+
|
10 |
+
if (Test-Path function:_old_virtual_prompt) {
|
11 |
+
$function:prompt = $function:_old_virtual_prompt
|
12 |
+
Remove-Item function:\_old_virtual_prompt
|
13 |
+
}
|
14 |
+
|
15 |
+
if ($env:VIRTUAL_ENV) {
|
16 |
+
Remove-Item env:VIRTUAL_ENV -ErrorAction SilentlyContinue
|
17 |
+
}
|
18 |
+
|
19 |
+
if (!$NonDestructive) {
|
20 |
+
# Self destruct!
|
21 |
+
Remove-Item function:deactivate
|
22 |
+
Remove-Item function:pydoc
|
23 |
+
}
|
24 |
+
}
|
25 |
+
|
26 |
+
function global:pydoc {
|
27 |
+
python -m pydoc $args
|
28 |
+
}
|
29 |
+
|
30 |
+
# unset irrelevant variables
|
31 |
+
deactivate -nondestructive
|
32 |
+
|
33 |
+
$VIRTUAL_ENV = $BASE_DIR
|
34 |
+
$env:VIRTUAL_ENV = $VIRTUAL_ENV
|
35 |
+
|
36 |
+
New-Variable -Scope global -Name _OLD_VIRTUAL_PATH -Value $env:PATH
|
37 |
+
|
38 |
+
$env:PATH = "$env:VIRTUAL_ENV/bin:" + $env:PATH
|
39 |
+
if (!$env:VIRTUAL_ENV_DISABLE_PROMPT) {
|
40 |
+
function global:_old_virtual_prompt {
|
41 |
+
""
|
42 |
+
}
|
43 |
+
$function:_old_virtual_prompt = $function:prompt
|
44 |
+
|
45 |
+
if ("" -ne "") {
|
46 |
+
function global:prompt {
|
47 |
+
# Add the custom prefix to the existing prompt
|
48 |
+
$previous_prompt_value = & $function:_old_virtual_prompt
|
49 |
+
("() " + $previous_prompt_value)
|
50 |
+
}
|
51 |
+
}
|
52 |
+
else {
|
53 |
+
function global:prompt {
|
54 |
+
# Add a prefix to the current prompt, but don't discard it.
|
55 |
+
$previous_prompt_value = & $function:_old_virtual_prompt
|
56 |
+
$new_prompt_value = "($( Split-Path $env:VIRTUAL_ENV -Leaf )) "
|
57 |
+
($new_prompt_value + $previous_prompt_value)
|
58 |
+
}
|
59 |
+
}
|
60 |
+
}
|
venv/bin/activate_this.py
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""Activate virtualenv for current interpreter:
|
2 |
+
|
3 |
+
Use exec(open(this_file).read(), {'__file__': this_file}).
|
4 |
+
|
5 |
+
This can be used when you must use an existing Python interpreter, not the virtualenv bin/python.
|
6 |
+
"""
|
7 |
+
import os
|
8 |
+
import site
|
9 |
+
import sys
|
10 |
+
|
11 |
+
try:
|
12 |
+
abs_file = os.path.abspath(__file__)
|
13 |
+
except NameError:
|
14 |
+
raise AssertionError("You must use exec(open(this_file).read(), {'__file__': this_file}))")
|
15 |
+
|
16 |
+
bin_dir = os.path.dirname(abs_file)
|
17 |
+
base = bin_dir[: -len("bin") - 1] # strip away the bin part from the __file__, plus the path separator
|
18 |
+
|
19 |
+
# prepend bin to PATH (this file is inside the bin directory)
|
20 |
+
os.environ["PATH"] = os.pathsep.join([bin_dir] + os.environ.get("PATH", "").split(os.pathsep))
|
21 |
+
os.environ["VIRTUAL_ENV"] = base # virtual env is right above bin directory
|
22 |
+
|
23 |
+
# add the virtual environments libraries to the host python import mechanism
|
24 |
+
prev_length = len(sys.path)
|
25 |
+
for lib in "../lib/python3.11/site-packages".split(os.pathsep):
|
26 |
+
path = os.path.realpath(os.path.join(bin_dir, lib))
|
27 |
+
site.addsitedir(path.decode("utf-8") if "" else path)
|
28 |
+
sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]
|
29 |
+
|
30 |
+
sys.real_prefix = sys.prefix
|
31 |
+
sys.prefix = base
|
venv/bin/deactivate.nu
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def-env deactivate-virtualenv [] {
|
2 |
+
def has-env [name: string] {
|
3 |
+
$name in (env).name
|
4 |
+
}
|
5 |
+
|
6 |
+
let is_windows = ((sys).host.name | str downcase) == 'windows'
|
7 |
+
|
8 |
+
let path_name = if $is_windows {
|
9 |
+
if (has-env 'Path') {
|
10 |
+
'Path'
|
11 |
+
} else {
|
12 |
+
'PATH'
|
13 |
+
}
|
14 |
+
} else {
|
15 |
+
'PATH'
|
16 |
+
}
|
17 |
+
|
18 |
+
load-env { $path_name : $env._OLD_VIRTUAL_PATH }
|
19 |
+
|
20 |
+
let-env PROMPT_COMMAND = $env._OLD_PROMPT_COMMAND
|
21 |
+
|
22 |
+
# Hiding the environment variables that were created when activating the env
|
23 |
+
hide _OLD_VIRTUAL_PATH
|
24 |
+
hide _OLD_PROMPT_COMMAND
|
25 |
+
hide VIRTUAL_ENV
|
26 |
+
hide VIRTUAL_PROMPT
|
27 |
+
}
|
28 |
+
|
29 |
+
deactivate-virtualenv
|
30 |
+
|
31 |
+
hide pydoc
|
32 |
+
hide deactivate
|
venv/bin/dotenv
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from dotenv.__main__ import cli
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(cli())
|
venv/bin/email_validator
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from email_validator.__main__ import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/f2py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from numpy.f2py.f2py2e import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/fastapi
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from fastapi_cli.cli import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/fonttools
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from fontTools.__main__ import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/gradio
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from gradio.cli import cli
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(cli())
|
venv/bin/httpx
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from httpx import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/huggingface-cli
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from huggingface_hub.commands.huggingface_cli import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/jsonschema
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from jsonschema.cli import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/markdown-it
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from markdown_it.cli.parse import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/normalizer
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from charset_normalizer.cli import cli_detect
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(cli_detect())
|
venv/bin/pip
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from pip._internal.cli.main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/pip-3.11
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from pip._internal.cli.main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/pip3
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from pip._internal.cli.main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/pip3.11
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from pip._internal.cli.main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/pyftmerge
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from fontTools.merge import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/pyftsubset
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from fontTools.subset import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/pygmentize
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from pygments.cmdline import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/python
ADDED
Binary file (153 kB). View file
|
|
venv/bin/python3
ADDED
Binary file (153 kB). View file
|
|
venv/bin/python3.11
ADDED
Binary file (153 kB). View file
|
|
venv/bin/ruff
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0418410f0c2c9314889ad14a316767c79400faffeddcff17522d094503d06c76
|
3 |
+
size 20584232
|
venv/bin/tqdm
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from tqdm.cli import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/ttx
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from fontTools.ttx import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/typer
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from typer.cli import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/upload_theme
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from gradio.themes.upload_theme import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|
venv/bin/uvicorn
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/Users/phi.tran/Development/learning/gradioapp/venv/bin/python
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
import re
|
4 |
+
import sys
|
5 |
+
from uvicorn.main import main
|
6 |
+
if __name__ == '__main__':
|
7 |
+
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
+
sys.exit(main())
|