Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
import os
|
3 |
import openai
|
4 |
|
5 |
-
openai.api_key="sk-
|
6 |
|
7 |
def get_completion(prompt, model="gpt-3.5-turbo"):
|
8 |
messages = [{"role": "user", "content": prompt}]
|
@@ -26,4 +26,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_test'), auth_message= "Enter your username and password that you received in on LA group")
|
|
|
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 |
# 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_test'),('ddd','t#la')], auth_message= "Enter your username and password that you received in on LA group")
|