AyushS9020 commited on
Commit
ae1999d
·
verified ·
1 Parent(s): 394757d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -28,7 +28,12 @@ client = Groq(api_key=api_key)
28
  # Initialize FastAPI app
29
  app = FastAPI()
30
 
31
- @app.get("test")
 
 
 
 
 
32
  def test() :
33
 
34
  return 'Running'
@@ -117,6 +122,6 @@ async def process_audio(audio_file: UploadFile = File(...)):
117
  "Content-Disposition": "attachment; filename=response.wav"
118
  })
119
 
120
- # Start the Uvicorn server for FastAPI
121
- if __name__ == "__main__":
122
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
28
  # Initialize FastAPI app
29
  app = FastAPI()
30
 
31
+ @app.get('/')
32
+ def sap() :
33
+
34
+ return 'Hello World'
35
+
36
+ @app.get("/test")
37
  def test() :
38
 
39
  return 'Running'
 
122
  "Content-Disposition": "attachment; filename=response.wav"
123
  })
124
 
125
+ # # Start the Uvicorn server for FastAPI
126
+ # if __name__ == "__main__":
127
+ # uvicorn.run(app, host="0.0.0.0", port=8000)