Update app.py
Browse files
app.py
CHANGED
@@ -50,8 +50,8 @@ def record_text(audio_file,api_key):
|
|
50 |
def api_calling(audio_file, prompt, api_key):
|
51 |
audio_text = record_text(audio_file,api_key)
|
52 |
if len(prompt) == 0:
|
53 |
-
prompt = '''Hi, act as a content writer and from the transcript provided to you separate all the text
|
54 |
-
|
55 |
|
56 |
return audio_text
|
57 |
else:
|
|
|
50 |
def api_calling(audio_file, prompt, api_key):
|
51 |
audio_text = record_text(audio_file,api_key)
|
52 |
if len(prompt) == 0:
|
53 |
+
prompt = '''Hi, act as a content writer and from the transcript provided to you separate all the text.
|
54 |
+
Apply proper punctuations, upper case and lower case to the provided text.'''
|
55 |
|
56 |
return audio_text
|
57 |
else:
|