DiamondYin commited on
Commit
0ec4721
·
1 Parent(s): 3f8dbaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -121,7 +121,7 @@ def reset_textbox():
121
  return gr.update(value='')
122
 
123
  title = """<h1 align="center">🔥ChatGPT API 🚀吴恩达课程点餐机器人复现🚀</h1>"""
124
- title = """<h3 align="center">输入你的API,接着机器人就可以为你进行点餐服务了/h3>"""
125
  description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
126
  ```
127
  User: <utterance>
@@ -136,6 +136,7 @@ In this app, you can explore the outputs of a gpt-3.5-turbo LLM.
136
  with gr.Blocks(css = """#col_container {width: 1000px; margin-left: auto; margin-right: auto;}
137
  #chatbot {height: 520px; overflow: auto;}""") as demo:
138
  gr.HTML(title)
 
139
  #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>''')
140
  with gr.Column(elem_id = "col_container"):
141
  openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")
 
121
  return gr.update(value='')
122
 
123
  title = """<h1 align="center">🔥ChatGPT API 🚀吴恩达课程点餐机器人复现🚀</h1>"""
124
+ title1 = """<h3 align="center">输入你的API,接着机器人就可以为你进行点餐服务了</h3>"""
125
  description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
126
  ```
127
  User: <utterance>
 
136
  with gr.Blocks(css = """#col_container {width: 1000px; margin-left: auto; margin-right: auto;}
137
  #chatbot {height: 520px; overflow: auto;}""") as demo:
138
  gr.HTML(title)
139
+ gr.HTML(title1)
140
  #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>''')
141
  with gr.Column(elem_id = "col_container"):
142
  openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")