Crawford.Zhou commited on
Commit
88cefb4
1 Parent(s): d2852b5

支持科比+孙笑川+丁真

Browse files
Files changed (3) hide show
  1. .idea/misc.xml +3 -0
  2. .idea/workspace.xml +43 -4
  3. app.py +20 -1
.idea/misc.xml CHANGED
@@ -1,4 +1,7 @@
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <project version="4">
 
 
 
3
  <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (pythonProject)" project-jdk-type="Python SDK" />
4
  </project>
 
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <project version="4">
3
+ <component name="Black">
4
+ <option name="sdkName" value="Python 3.10 (pythonProject)" />
5
+ </component>
6
  <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (pythonProject)" project-jdk-type="Python SDK" />
7
  </project>
.idea/workspace.xml CHANGED
@@ -4,7 +4,9 @@
4
  <option name="autoReloadType" value="SELECTIVE" />
5
  </component>
6
  <component name="ChangeListManager">
7
- <list default="true" id="212bd5bf-f007-472b-9cf5-468ab6c3bfa3" name="Changes" comment="first commit" />
 
 
8
  <option name="SHOW_DIALOG" value="false" />
9
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -116,6 +118,29 @@
116
  <option name="INPUT_FILE" value="" />
117
  <method v="2" />
118
  </configuration>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  <configuration default="true" type="Python.FlaskServer">
120
  <option name="ENV_FILES" value="" />
121
  <option name="INTERPRETER_OPTIONS" value="" />
@@ -198,6 +223,11 @@
198
  <option name="USE_PATTERN" value="false" />
199
  <method v="2" />
200
  </configuration>
 
 
 
 
 
201
  </component>
202
  <component name="SharedIndexes">
203
  <attachedChunks>
@@ -227,7 +257,15 @@
227
  <option name="project" value="LOCAL" />
228
  <updated>1704379731409</updated>
229
  </task>
230
- <option name="localTasksCounter" value="2" />
 
 
 
 
 
 
 
 
231
  <servers />
232
  </component>
233
  <component name="TypeScriptGeneratedFilesManager">
@@ -246,9 +284,10 @@
246
  </component>
247
  <component name="VcsManagerConfiguration">
248
  <MESSAGE value="first commit" />
249
- <option name="LAST_COMMIT_MESSAGE" value="first commit" />
 
250
  </component>
251
  <component name="com.intellij.coverage.CoverageDataManagerImpl">
252
- <SUITE FILE_PATH="coverage/pythonProject$app.coverage" NAME="app Coverage Results" MODIFIED="1704379451259" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
253
  </component>
254
  </project>
 
4
  <option name="autoReloadType" value="SELECTIVE" />
5
  </component>
6
  <component name="ChangeListManager">
7
+ <list default="true" id="212bd5bf-f007-472b-9cf5-468ab6c3bfa3" name="Changes" comment="app">
8
+ <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
+ </list>
10
  <option name="SHOW_DIALOG" value="false" />
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
 
118
  <option name="INPUT_FILE" value="" />
119
  <method v="2" />
120
  </configuration>
121
+ <configuration name="app" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
122
+ <module name="pythonProject" />
123
+ <option name="ENV_FILES" value="" />
124
+ <option name="INTERPRETER_OPTIONS" value="" />
125
+ <option name="PARENT_ENVS" value="true" />
126
+ <envs>
127
+ <env name="PYTHONUNBUFFERED" value="1" />
128
+ </envs>
129
+ <option name="SDK_HOME" value="" />
130
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
131
+ <option name="IS_MODULE_SDK" value="true" />
132
+ <option name="ADD_CONTENT_ROOTS" value="true" />
133
+ <option name="ADD_SOURCE_ROOTS" value="true" />
134
+ <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
135
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/app.py" />
136
+ <option name="PARAMETERS" value="" />
137
+ <option name="SHOW_COMMAND_LINE" value="false" />
138
+ <option name="EMULATE_TERMINAL" value="false" />
139
+ <option name="MODULE_MODE" value="false" />
140
+ <option name="REDIRECT_INPUT" value="false" />
141
+ <option name="INPUT_FILE" value="" />
142
+ <method v="2" />
143
+ </configuration>
144
  <configuration default="true" type="Python.FlaskServer">
145
  <option name="ENV_FILES" value="" />
146
  <option name="INTERPRETER_OPTIONS" value="" />
 
223
  <option name="USE_PATTERN" value="false" />
224
  <method v="2" />
225
  </configuration>
226
+ <recent_temporary>
227
+ <list>
228
+ <item itemvalue="Python.app" />
229
+ </list>
230
+ </recent_temporary>
231
  </component>
232
  <component name="SharedIndexes">
233
  <attachedChunks>
 
257
  <option name="project" value="LOCAL" />
258
  <updated>1704379731409</updated>
259
  </task>
260
+ <task id="LOCAL-00002" summary="app">
261
+ <option name="closed" value="true" />
262
+ <created>1704382358849</created>
263
+ <option name="number" value="00002" />
264
+ <option name="presentableId" value="LOCAL-00002" />
265
+ <option name="project" value="LOCAL" />
266
+ <updated>1704382358849</updated>
267
+ </task>
268
+ <option name="localTasksCounter" value="3" />
269
  <servers />
270
  </component>
271
  <component name="TypeScriptGeneratedFilesManager">
 
284
  </component>
285
  <component name="VcsManagerConfiguration">
286
  <MESSAGE value="first commit" />
287
+ <MESSAGE value="app" />
288
+ <option name="LAST_COMMIT_MESSAGE" value="app" />
289
  </component>
290
  <component name="com.intellij.coverage.CoverageDataManagerImpl">
291
+ <SUITE FILE_PATH="coverage/pythonProject$app.coverage" NAME="app Coverage Results" MODIFIED="1704382416091" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
292
  </component>
293
  </project>
app.py CHANGED
@@ -36,7 +36,26 @@ def greet(name, intensity):
36
  "auto",
37
  "1.wav",
38
  "Howdy!", # str in 'Text prompt' Textbox component
39
- "Text prompt", # str in 'Prompt Mode' Radio component
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  fn_index=0
41
  )
42
  print(result)
 
36
  "auto",
37
  "1.wav",
38
  "Howdy!", # str in 'Text prompt' Textbox component
39
+ "Text prompt", # str in 'Prompt Mode' Radio component
40
+ "Howdy!",
41
+ fn_index=0
42
+ )
43
+ print(result)
44
+ return result[1]
45
+ if intensity == 2:
46
+ client = Client("https://xzjosh-kobe-bert-vits2-2-3.hf.space/--replicas/sk3k7/")
47
+ result = client.predict(
48
+ name, # str in '输入文本内容' Textbox component
49
+ "科比", # str (Option from: [('孙笑川', '孙笑川')]) in 'Speaker' Dropdown component
50
+ 0.5, # int | float (numeric value between 0 and 1) in 'SDP Ratio' Slider component
51
+ 0.5, # int | float (numeric value between 0.1 and 2) in 'Noise' Slider component
52
+ 0.9, # int | float (numeric value between 0.1 and 2) in 'Noise_W' Slider component
53
+ 1, # int | float (numeric value between 0.1 and 2) in 'Length' Slider component
54
+ "auto",
55
+ "1.wav",
56
+ "Howdy!", # str in 'Text prompt' Textbox component
57
+ "Text prompt", # str in 'Prompt Mode' Radio component,
58
+ "Howdy!",
59
  fn_index=0
60
  )
61
  print(result)