Spaces:
Runtime error
Runtime error
zwq2018
commited on
Commit
•
fa2119a
1
Parent(s):
e411954
modify app_with_key.py
Browse files- .idea/.gitignore +8 -0
- .idea/Data-Copilot.iml +8 -0
- .idea/inspectionProfiles/Project_Default.xml +154 -0
- .idea/inspectionProfiles/profiles_settings.xml +6 -0
- .idea/misc.xml +4 -0
- .idea/modules.xml +8 -0
- .idea/vcs.xml +6 -0
- app_with_key.py +3 -2
.idea/.gitignore
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 默认忽略的文件
|
2 |
+
/shelf/
|
3 |
+
/workspace.xml
|
4 |
+
# 基于编辑器的 HTTP 客户端请求
|
5 |
+
/httpRequests/
|
6 |
+
# Datasource local storage ignored files
|
7 |
+
/dataSources/
|
8 |
+
/dataSources.local.xml
|
.idea/Data-Copilot.iml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<orderEntry type="inheritedJdk" />
|
6 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
7 |
+
</component>
|
8 |
+
</module>
|
.idea/inspectionProfiles/Project_Default.xml
ADDED
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<component name="InspectionProjectProfileManager">
|
2 |
+
<profile version="1.0">
|
3 |
+
<option name="myName" value="Project Default" />
|
4 |
+
<inspection_tool class="CommandLineInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
5 |
+
<inspection_tool class="CythonUsageBeforeDeclarationInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
6 |
+
<inspection_tool class="PoetryPackageVersionsInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
7 |
+
<inspection_tool class="PyAbstractClassInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
8 |
+
<inspection_tool class="PyArgumentListInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
9 |
+
<inspection_tool class="PyAssignmentToLoopOrWithParameterInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
10 |
+
<inspection_tool class="PyAsyncCallInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
11 |
+
<inspection_tool class="PyAttributeOutsideInitInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
12 |
+
<inspection_tool class="PyBDDParametersInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
13 |
+
<inspection_tool class="PyBroadExceptionInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
14 |
+
<inspection_tool class="PyByteLiteralInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
15 |
+
<inspection_tool class="PyCallingNonCallableInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
16 |
+
<inspection_tool class="PyChainedComparisonsInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
17 |
+
<inspection_tool class="PyClassHasNoInitInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
18 |
+
<inspection_tool class="PyComparisonWithNoneInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
19 |
+
<inspection_tool class="PyDataclassInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
20 |
+
<inspection_tool class="PyDecoratorInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
21 |
+
<inspection_tool class="PyDefaultArgumentInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
22 |
+
<inspection_tool class="PyDeprecationInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
23 |
+
<inspection_tool class="PyDictCreationInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
24 |
+
<inspection_tool class="PyDictDuplicateKeysInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
25 |
+
<inspection_tool class="PyDocstringTypesInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
26 |
+
<inspection_tool class="PyDunderSlotsInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
27 |
+
<inspection_tool class="PyExceptClausesOrderInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
28 |
+
<inspection_tool class="PyExceptionInheritInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
29 |
+
<inspection_tool class="PyFinalInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
30 |
+
<inspection_tool class="PyFromFutureImportInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
31 |
+
<inspection_tool class="PyGlobalUndefinedInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
32 |
+
<inspection_tool class="PyInconsistentIndentationInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
33 |
+
<inspection_tool class="PyIncorrectDocstringInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
34 |
+
<inspection_tool class="PyInitNewSignatureInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
35 |
+
<inspection_tool class="PyInterpreterInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
36 |
+
<inspection_tool class="PyListCreationInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
37 |
+
<inspection_tool class="PyMethodFirstArgAssignmentInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
38 |
+
<inspection_tool class="PyMethodMayBeStaticInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
39 |
+
<inspection_tool class="PyMethodOverridingInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
40 |
+
<inspection_tool class="PyMethodParametersInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
41 |
+
<inspection_tool class="PyMissingConstructorInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
42 |
+
<inspection_tool class="PyNamedTupleInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
43 |
+
<inspection_tool class="PyNestedDecoratorsInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
44 |
+
<inspection_tool class="PyNonAsciiCharInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
45 |
+
<inspection_tool class="PyNoneFunctionAssignmentInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
46 |
+
<inspection_tool class="PyOldStyleClassesInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
47 |
+
<inspection_tool class="PyOverloadsInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
48 |
+
<inspection_tool class="PyPackageRequirementsInspection" enabled="false" level="WARNING" enabled_by_default="false">
|
49 |
+
<option name="ignoredPackages">
|
50 |
+
<value>
|
51 |
+
<list size="65">
|
52 |
+
<item index="0" class="java.lang.String" itemvalue="traitlets" />
|
53 |
+
<item index="1" class="java.lang.String" itemvalue="protobuf" />
|
54 |
+
<item index="2" class="java.lang.String" itemvalue="huggingface-hub" />
|
55 |
+
<item index="3" class="java.lang.String" itemvalue="MarkupSafe" />
|
56 |
+
<item index="4" class="java.lang.String" itemvalue="srsly" />
|
57 |
+
<item index="5" class="java.lang.String" itemvalue="torchvision" />
|
58 |
+
<item index="6" class="java.lang.String" itemvalue="spacy" />
|
59 |
+
<item index="7" class="java.lang.String" itemvalue="filelock" />
|
60 |
+
<item index="8" class="java.lang.String" itemvalue="Pygments" />
|
61 |
+
<item index="9" class="java.lang.String" itemvalue="certifi" />
|
62 |
+
<item index="10" class="java.lang.String" itemvalue="pyparsing" />
|
63 |
+
<item index="11" class="java.lang.String" itemvalue="pydantic" />
|
64 |
+
<item index="12" class="java.lang.String" itemvalue="transformers" />
|
65 |
+
<item index="13" class="java.lang.String" itemvalue="sacremoses" />
|
66 |
+
<item index="14" class="java.lang.String" itemvalue="typing-extensions" />
|
67 |
+
<item index="15" class="java.lang.String" itemvalue="pathy" />
|
68 |
+
<item index="16" class="java.lang.String" itemvalue="click" />
|
69 |
+
<item index="17" class="java.lang.String" itemvalue="catalogue" />
|
70 |
+
<item index="18" class="java.lang.String" itemvalue="jedi" />
|
71 |
+
<item index="19" class="java.lang.String" itemvalue="regex" />
|
72 |
+
<item index="20" class="java.lang.String" itemvalue="cymem" />
|
73 |
+
<item index="21" class="java.lang.String" itemvalue="contextvars" />
|
74 |
+
<item index="22" class="java.lang.String" itemvalue="charset-normalizer" />
|
75 |
+
<item index="23" class="java.lang.String" itemvalue="murmurhash" />
|
76 |
+
<item index="24" class="java.lang.String" itemvalue="jsonlines" />
|
77 |
+
<item index="25" class="java.lang.String" itemvalue="decorator" />
|
78 |
+
<item index="26" class="java.lang.String" itemvalue="wasabi" />
|
79 |
+
<item index="27" class="java.lang.String" itemvalue="requests" />
|
80 |
+
<item index="28" class="java.lang.String" itemvalue="spacy-legacy" />
|
81 |
+
<item index="29" class="java.lang.String" itemvalue="importlib-metadata" />
|
82 |
+
<item index="30" class="java.lang.String" itemvalue="Jinja2" />
|
83 |
+
<item index="31" class="java.lang.String" itemvalue="mkl-fft" />
|
84 |
+
<item index="32" class="java.lang.String" itemvalue="preshed" />
|
85 |
+
<item index="33" class="java.lang.String" itemvalue="ipdb" />
|
86 |
+
<item index="34" class="java.lang.String" itemvalue="smart-open" />
|
87 |
+
<item index="35" class="java.lang.String" itemvalue="prompt-toolkit" />
|
88 |
+
<item index="36" class="java.lang.String" itemvalue="blis" />
|
89 |
+
<item index="37" class="java.lang.String" itemvalue="urllib3" />
|
90 |
+
<item index="38" class="java.lang.String" itemvalue="scipy" />
|
91 |
+
<item index="39" class="java.lang.String" itemvalue="immutables" />
|
92 |
+
<item index="40" class="java.lang.String" itemvalue="dataclasses" />
|
93 |
+
<item index="41" class="java.lang.String" itemvalue="typer" />
|
94 |
+
<item index="42" class="java.lang.String" itemvalue="parso" />
|
95 |
+
<item index="43" class="java.lang.String" itemvalue="packaging" />
|
96 |
+
<item index="44" class="java.lang.String" itemvalue="torch" />
|
97 |
+
<item index="45" class="java.lang.String" itemvalue="toml" />
|
98 |
+
<item index="46" class="java.lang.String" itemvalue="tqdm" />
|
99 |
+
<item index="47" class="java.lang.String" itemvalue="tensorboardX" />
|
100 |
+
<item index="48" class="java.lang.String" itemvalue="thinc" />
|
101 |
+
<item index="49" class="java.lang.String" itemvalue="olefile" />
|
102 |
+
<item index="50" class="java.lang.String" itemvalue="tokenizers" />
|
103 |
+
<item index="51" class="java.lang.String" itemvalue="six" />
|
104 |
+
<item index="52" class="java.lang.String" itemvalue="joblib" />
|
105 |
+
<item index="53" class="java.lang.String" itemvalue="ptyprocess" />
|
106 |
+
<item index="54" class="java.lang.String" itemvalue="PyYAML" />
|
107 |
+
<item index="55" class="java.lang.String" itemvalue="pickleshare" />
|
108 |
+
<item index="56" class="java.lang.String" itemvalue="wcwidth" />
|
109 |
+
<item index="57" class="java.lang.String" itemvalue="mkl-random" />
|
110 |
+
<item index="58" class="java.lang.String" itemvalue="numpy" />
|
111 |
+
<item index="59" class="java.lang.String" itemvalue="pexpect" />
|
112 |
+
<item index="60" class="java.lang.String" itemvalue="backcall" />
|
113 |
+
<item index="61" class="java.lang.String" itemvalue="zipp" />
|
114 |
+
<item index="62" class="java.lang.String" itemvalue="idna" />
|
115 |
+
<item index="63" class="java.lang.String" itemvalue="mkl-service" />
|
116 |
+
<item index="64" class="java.lang.String" itemvalue="Pillow" />
|
117 |
+
</list>
|
118 |
+
</value>
|
119 |
+
</option>
|
120 |
+
</inspection_tool>
|
121 |
+
<inspection_tool class="PyPep8Inspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
122 |
+
<inspection_tool class="PyPep8NamingInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
123 |
+
<inspection_tool class="PyPropertyAccessInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
124 |
+
<inspection_tool class="PyPropertyDefinitionInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
125 |
+
<inspection_tool class="PyProtectedMemberInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
126 |
+
<inspection_tool class="PyProtocolInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
127 |
+
<inspection_tool class="PyRedeclarationInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
128 |
+
<inspection_tool class="PyRedundantParenthesesInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
129 |
+
<inspection_tool class="PyRelativeImportInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
130 |
+
<inspection_tool class="PyReturnFromInitInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
131 |
+
<inspection_tool class="PySetFunctionToLiteralInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
132 |
+
<inspection_tool class="PyShadowingBuiltinsInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
133 |
+
<inspection_tool class="PyShadowingNamesInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
134 |
+
<inspection_tool class="PySimplifyBooleanCheckInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
135 |
+
<inspection_tool class="PySingleQuotedDocstringInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
136 |
+
<inspection_tool class="PyStatementEffectInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
137 |
+
<inspection_tool class="PyStringFormatInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
138 |
+
<inspection_tool class="PyStubPackagesAdvertiser" enabled="false" level="WARNING" enabled_by_default="false" />
|
139 |
+
<inspection_tool class="PyStubPackagesCompatibilityInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
140 |
+
<inspection_tool class="PySuperArgumentsInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
141 |
+
<inspection_tool class="PyTestParametrizedInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
142 |
+
<inspection_tool class="PyTrailingSemicolonInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
143 |
+
<inspection_tool class="PyTupleAssignmentBalanceInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
144 |
+
<inspection_tool class="PyTupleItemAssignmentInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
145 |
+
<inspection_tool class="PyTypeCheckerInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
146 |
+
<inspection_tool class="PyTypeHintsInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
147 |
+
<inspection_tool class="PyTypedDictInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
148 |
+
<inspection_tool class="PyUnboundLocalVariableInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
149 |
+
<inspection_tool class="PyUnnecessaryBackslashInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
150 |
+
<inspection_tool class="PyUnreachableCodeInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
151 |
+
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
152 |
+
<inspection_tool class="PyUnusedLocalInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
153 |
+
</profile>
|
154 |
+
</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.9" 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/Data-Copilot.iml" filepath="$PROJECT_DIR$/.idea/Data-Copilot.iml" />
|
6 |
+
</modules>
|
7 |
+
</component>
|
8 |
+
</project>
|
.idea/vcs.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="VcsDirectoryMappings">
|
4 |
+
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
5 |
+
</component>
|
6 |
+
</project>
|
app_with_key.py
CHANGED
@@ -9,7 +9,7 @@ import sys
|
|
9 |
import time
|
10 |
import os
|
11 |
import pandas as pd
|
12 |
-
OPENAI_KEY =
|
13 |
css = """#col-container {max-width: 90%; margin-left: auto; margin-right: auto; display: flex; flex-direction: column;}
|
14 |
#header {text-align: center;}
|
15 |
#col-chatbox {flex: 1; max-height: min(750px, 100%);}
|
@@ -94,7 +94,8 @@ with gr.Blocks() as demo:
|
|
94 |
with gr.Column(scale=0.9):
|
95 |
gr.Markdown(
|
96 |
"""
|
97 |
-
You can use gpt35 from openai or from openai-azure ,then press OK
|
|
|
98 |
""")
|
99 |
openai_api_key = gr.Textbox(
|
100 |
show_label=False,
|
|
|
9 |
import time
|
10 |
import os
|
11 |
import pandas as pd
|
12 |
+
OPENAI_KEY = ''
|
13 |
css = """#col-container {max-width: 90%; margin-left: auto; margin-right: auto; display: flex; flex-direction: column;}
|
14 |
#header {text-align: center;}
|
15 |
#col-chatbox {flex: 1; max-height: min(750px, 100%);}
|
|
|
94 |
with gr.Column(scale=0.9):
|
95 |
gr.Markdown(
|
96 |
"""
|
97 |
+
You can use gpt35 from openai or from openai-azure ,then press OK
|
98 |
+
## 请输入自己的OPENAI的Key并等待几秒后按OK.
|
99 |
""")
|
100 |
openai_api_key = gr.Textbox(
|
101 |
show_label=False,
|