Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
|
2 |
import os
|
3 |
import openai
|
|
|
4 |
|
5 |
-
openai.api_key=
|
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','#
|
|
|
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")
|