Spaces:
Runtime error
Runtime error
retitle
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
8 |
#if you have OpenAI API key as a string, enable the below
|
9 |
openai.api_key = ""
|
10 |
|
11 |
-
start_sequence = "\
|
12 |
-
restart_sequence = "\
|
13 |
|
14 |
prompt = "The following is a conversation with an AI assistant. The assistant is helpful, creative, clever, and very friendly.\n\nHuman: Hello, who are you?\nAI: I am an AI created by OpenAI. How can I help you today?\nHuman: "
|
15 |
|
@@ -44,7 +44,7 @@ block = gr.Blocks()
|
|
44 |
|
45 |
|
46 |
with block:
|
47 |
-
gr.Markdown("""<h1><center>
|
48 |
""")
|
49 |
chatbot = gr.Chatbot()
|
50 |
message = gr.Textbox(placeholder=prompt)
|
|
|
8 |
#if you have OpenAI API key as a string, enable the below
|
9 |
openai.api_key = ""
|
10 |
|
11 |
+
start_sequence = "\ChatGPT:"
|
12 |
+
restart_sequence = "\nMe: "
|
13 |
|
14 |
prompt = "The following is a conversation with an AI assistant. The assistant is helpful, creative, clever, and very friendly.\n\nHuman: Hello, who are you?\nAI: I am an AI created by OpenAI. How can I help you today?\nHuman: "
|
15 |
|
|
|
44 |
|
45 |
|
46 |
with block:
|
47 |
+
gr.Markdown("""<h1><center>ChatGPT Demo</center></h1>
|
48 |
""")
|
49 |
chatbot = gr.Chatbot()
|
50 |
message = gr.Textbox(placeholder=prompt)
|