Surrendra commited on
Commit
b5dc88b
·
verified ·
1 Parent(s): 5a3cd56

Removed class reference

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,7 +73,7 @@ def generate(text:str):
73
  return {"output":output[0]['generated_text']}
74
 
75
  @app.get("/transcribe")
76
- def get_transcript_mp4(self,mp4_path):
77
  #path_to_check = r"C:\Program Files\ffmpeg\bin"
78
  #if path_to_check in os.environ["PATH"]:
79
  #print(f"{path_to_check} is in the PATH")
@@ -119,7 +119,7 @@ def get_transcript_mp4(self,mp4_path):
119
  return "Test summary"
120
 
121
  @app.get("/summarize")
122
- def summarize_text(self,text, lang='en'):
123
  OpenAI.api_key = os.getenv("OPENAI_API_KEY")
124
  client = OpenAI(api_key=OpenAI.api_key)
125
 
 
73
  return {"output":output[0]['generated_text']}
74
 
75
  @app.get("/transcribe")
76
+ def get_transcript_mp4(mp4_path):
77
  #path_to_check = r"C:\Program Files\ffmpeg\bin"
78
  #if path_to_check in os.environ["PATH"]:
79
  #print(f"{path_to_check} is in the PATH")
 
119
  return "Test summary"
120
 
121
  @app.get("/summarize")
122
+ def summarize_text(text, lang='en'):
123
  OpenAI.api_key = os.getenv("OPENAI_API_KEY")
124
  client = OpenAI(api_key=OpenAI.api_key)
125