Spaces:
Sleeping
Sleeping
modify the input list
Browse files
app.py
CHANGED
@@ -173,13 +173,14 @@ file_transcribe = gr.Interface(
|
|
173 |
cache_examples=True,
|
174 |
allow_flagging="never",
|
175 |
)
|
176 |
-
def writenotes(
|
177 |
#text=transcribe_text
|
178 |
#openaikey.set_key(inputkey)
|
179 |
#openaikey = OpenAIKeyClass(inputkey)
|
180 |
print('ok')
|
181 |
-
if len(
|
182 |
transcribe_text=inputscript
|
|
|
183 |
ainotestext=process_chunks(apikeystr,transcribe_text)
|
184 |
#ainotestext=""
|
185 |
# with open('asr_resul.txt', 'w') as f:
|
|
|
173 |
cache_examples=True,
|
174 |
allow_flagging="never",
|
175 |
)
|
176 |
+
def writenotes(inputdata):
|
177 |
#text=transcribe_text
|
178 |
#openaikey.set_key(inputkey)
|
179 |
#openaikey = OpenAIKeyClass(inputkey)
|
180 |
print('ok')
|
181 |
+
if len(inputdata[1])>10:
|
182 |
transcribe_text=inputscript
|
183 |
+
apikeystr=inputdata[0]
|
184 |
ainotestext=process_chunks(apikeystr,transcribe_text)
|
185 |
#ainotestext=""
|
186 |
# with open('asr_resul.txt', 'w') as f:
|