Anmol12385 commited on
Commit
c1e5359
·
1 Parent(s): 62158d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
6
  #openai.api_key = os.getenv("OPENAI_API_KEY")
7
 
8
  #if you have OpenAI API key as a string, enable the below
9
- openai.api_key = "xxxxxx"
10
 
11
  start_sequence = "\nAI:"
12
  restart_sequence = "\nHuman: "
@@ -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)
 
6
  #openai.api_key = os.getenv("OPENAI_API_KEY")
7
 
8
  #if you have OpenAI API key as a string, enable the below
9
+ openai.api_key = "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"
10
 
11
  start_sequence = "\nAI:"
12
  restart_sequence = "\nHuman: "
 
44
 
45
 
46
  with block:
47
+ gr.Markdown("""<h1><center>Smart Code Generator by Anmol</center></h1>
48
  """)
49
  chatbot = gr.Chatbot()
50
  message = gr.Textbox(placeholder=prompt)