Jofthomas HF staff commited on
Commit
7bec199
1 Parent(s): 4c034f6

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. TextGen/router.py +1 -4
TextGen/router.py CHANGED
@@ -27,13 +27,10 @@ from elevenlabs import Voice, VoiceSettings, stream
27
  Eleven_client = ElevenLabs(
28
  api_key=os.environ["ELEVEN_API_KEY"], # Defaults to ELEVEN_API_KEY
29
  )
30
- origins = [
31
- "https://jofthomas-everchanging-quest.hf.space",
32
- ]
33
 
34
  app.add_middleware(
35
  CORSMiddleware,
36
- allow_origins=origins,
37
  allow_credentials=True,
38
  allow_methods=["*"],
39
  allow_headers=["*"],
 
27
  Eleven_client = ElevenLabs(
28
  api_key=os.environ["ELEVEN_API_KEY"], # Defaults to ELEVEN_API_KEY
29
  )
 
 
 
30
 
31
  app.add_middleware(
32
  CORSMiddleware,
33
+ allow_origins=["https://jofthomas-everchanging-quest.hf.space"],
34
  allow_credentials=True,
35
  allow_methods=["*"],
36
  allow_headers=["*"],