Vihang28 commited on
Commit
ae4c5d0
·
verified ·
1 Parent(s): 8674f75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -50,10 +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, I have created an app where I am uploading a video and then converting it to .mp3 format so that I could use
54
- AI to convert, speech to text. Then that text is also provided to the AI so that the user can ask any question regarding the video
55
- in the chatbot created by me. Your job is provide the summary of the transcript without any timestamp. Apply proper punctuations,
56
- upper case and lower case to the provided text and be gentle.'''
57
 
58
  return audio_text
59
  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, and write a summary for
54
+ the same. Apply proper punctuations, upper case and lower case to the provided text.'''
 
 
55
 
56
  return audio_text
57
  else: