DiamondYin commited on
Commit
5d5bb73
·
1 Parent(s): 431035c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -120,7 +120,7 @@ def predict(inputs, top_p, temperature, openai_api_key, chat_counter, chatbot=[]
120
  def reset_textbox():
121
  return gr.update(value='')
122
 
123
- title = """<h1 align="center">🔥ChatGPT API 🚀Streaming🚀</h1>"""
124
  description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
125
  ```
126
  User: <utterance>
@@ -135,7 +135,7 @@ In this app, you can explore the outputs of a gpt-3.5-turbo LLM.
135
  with gr.Blocks(css = """#col_container {width: 1000px; margin-left: auto; margin-right: auto;}
136
  #chatbot {height: 520px; overflow: auto;}""") as demo:
137
  gr.HTML(title)
138
- gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPTwithAPI?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
139
  with gr.Column(elem_id = "col_container"):
140
  openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")
141
  chatbot = gr.Chatbot(elem_id='chatbot') #c
 
120
  def reset_textbox():
121
  return gr.update(value='')
122
 
123
+ title = """<h1 align="center">🔥ChatGPT API 🚀吴恩达课程点餐机器人复现🚀</h1>"""
124
  description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
125
  ```
126
  User: <utterance>
 
135
  with gr.Blocks(css = """#col_container {width: 1000px; margin-left: auto; margin-right: auto;}
136
  #chatbot {height: 520px; overflow: auto;}""") as demo:
137
  gr.HTML(title)
138
+ #gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPTwithAPI?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
139
  with gr.Column(elem_id = "col_container"):
140
  openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")
141
  chatbot = gr.Chatbot(elem_id='chatbot') #c