LeroyDyer commited on
Commit
b424a10
·
verified ·
1 Parent(s): 9238700

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -13,15 +13,11 @@ import gradio as gr
13
 
14
  from openai import AsyncOpenAI
15
  from openai import OpenAI
16
- api_key = os.environ.get('FEATHERLESS_API_KEY')
17
- client = OpenAI(
18
- base_url="https://api.featherless.ai/v1",
19
- api_key=api_key
20
- )
21
 
22
  async_client = AsyncOpenAI(
23
- base_url="https://api.featherless.ai/v1",
24
- api_key=api_key
25
  )
26
  def CreateClient(BASE,API):
27
  '''Create async OpenAI Client required for multi tasking '''
 
13
 
14
  from openai import AsyncOpenAI
15
  from openai import OpenAI
16
+
 
 
 
 
17
 
18
  async_client = AsyncOpenAI(
19
+ base_url="https://127.0.0.1/v1",
20
+ api_key=""
21
  )
22
  def CreateClient(BASE,API):
23
  '''Create async OpenAI Client required for multi tasking '''