zwq2018 commited on
Commit
bb7cd19
·
1 Parent(s): 2d60caa

modified: app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -50,10 +50,10 @@ class Client:
50
  def run(self, messages):
51
 
52
  # self.stop = False
53
- self.OPENAI_KEY = ''
54
- self.OPENAI_API_KEY_AZURE = os.getenv('OPENAI_API_KEY_AZURE')
55
- self.OPENAI_API_BASED_AZURE = os.getenv('OPENAI_API_BASED_AZURE')
56
- self.OPENAI_ENGINE_AZURE = os.getenv('OPENAI_ENGINE_AZURE')
57
  gen = gradio_interface(messages, self.OPENAI_KEY, self.OPENAI_API_KEY_AZURE, self.OPENAI_API_BASED_AZURE, self.OPENAI_ENGINE_AZURE)
58
  while not self.stop: #
59
  try:
 
50
  def run(self, messages):
51
 
52
  # self.stop = False
53
+ self.OPENAI_KEY = os.getenv('OPENAI_API')
54
+ self.OPENAI_API_KEY_AZURE = ''#os.getenv('OPENAI_API_KEY_AZURE')
55
+ self.OPENAI_API_BASED_AZURE ='' #os.getenv('OPENAI_API_BASED_AZURE')
56
+ self.OPENAI_ENGINE_AZURE = '' #os.getenv('OPENAI_ENGINE_AZURE')
57
  gen = gradio_interface(messages, self.OPENAI_KEY, self.OPENAI_API_KEY_AZURE, self.OPENAI_API_BASED_AZURE, self.OPENAI_ENGINE_AZURE)
58
  while not self.stop: #
59
  try: