Spaces:
Build error
Build error
update input format
Browse files
app.py
CHANGED
|
@@ -173,15 +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 |
-
|
| 184 |
-
ainotestext=process_chunks(apikeystr,transcribe_text)
|
| 185 |
#ainotestext=""
|
| 186 |
# with open('asr_resul.txt', 'w') as f:
|
| 187 |
# #print(transcribe_text)
|
|
|
|
| 173 |
cache_examples=True,
|
| 174 |
allow_flagging="never",
|
| 175 |
)
|
| 176 |
+
def writenotes( apikeystr,inputscript):
|
| 177 |
#text=transcribe_text
|
| 178 |
#openaikey.set_key(inputkey)
|
| 179 |
#openaikey = OpenAIKeyClass(inputkey)
|
| 180 |
print('ok')
|
| 181 |
+
if len(inputscript)>10:
|
| 182 |
transcribe_text=inputscript
|
| 183 |
+
ainotestext=process_chunks(apikeystr,transcribe_text)
|
|
|
|
| 184 |
#ainotestext=""
|
| 185 |
# with open('asr_resul.txt', 'w') as f:
|
| 186 |
# #print(transcribe_text)
|