freddyaboulton HF Staff commited on
Commit
4655c56
·
verified ·
1 Parent(s): 5738222

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -21,7 +21,9 @@ stream = Stream(
21
 
22
  @stream.get("/")
23
  async def index():
24
- return RedirectResponse(url="/ui")
 
 
25
 
26
 
27
  if __name__ == "__main__":
 
21
 
22
  @stream.get("/")
23
  async def index():
24
+ return RedirectResponse(
25
+ url="/ui" if not get_space() else "http://fastrtc-echo-audio.hf.space/ui/"
26
+ )
27
 
28
 
29
  if __name__ == "__main__":