Daevesh commited on
Commit
6eec968
·
1 Parent(s): ac1e6bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,8 +1,9 @@
1
 
2
  import os
3
  import openai
 
4
 
5
- openai.api_key="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"
6
 
7
  def get_completion(prompt, model="gpt-3.5-turbo"):
8
  messages = [{"role": "user", "content": prompt}]
@@ -26,4 +27,4 @@ def store_string(input_string,history):
26
  # Create an interface with a text input and a submit button
27
  #interface = gr.Interface(fn=store_string, inputs=gr.inputs.Textbox(), outputs="text", allow_flagging= "auto")
28
  interface =gr.ChatInterface(store_string,analytics_enabled=True)
29
- interface.launch(inbrowser= True, auth = ('rrr','#la_rocks'), auth_message= "Enter your username and password that you received in on LA group")
 
1
 
2
  import os
3
  import openai
4
+ import creds
5
 
6
+ openai.api_key=cred.openai.api_key
7
 
8
  def get_completion(prompt, model="gpt-3.5-turbo"):
9
  messages = [{"role": "user", "content": prompt}]
 
27
  # Create an interface with a text input and a submit button
28
  #interface = gr.Interface(fn=store_string, inputs=gr.inputs.Textbox(), outputs="text", allow_flagging= "auto")
29
  interface =gr.ChatInterface(store_string,analytics_enabled=True)
30
+ interface.launch(inbrowser= True, auth = ('rrr','#test'), auth_message= "Enter your username and password that you received in on LA group")