maodd commited on
Commit
4ec1a03
·
1 Parent(s): a6e93ea
Files changed (1) hide show
  1. app.py +3 -3
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 = "\nAI:"
12
- restart_sequence = "\nHuman: "
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>Build Yo'own ChatGPT with OpenAI API & Gradio</center></h1>
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)