fengtc commited on
Commit
96d86ab
·
1 Parent(s): d9087d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,7 +8,7 @@ OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
8
  USER=os.getenv('USER')
9
  PASS=os.getenv('PASS')
10
 
11
- prompt = "您是回答所有用户查询的得力助手,所有问题请用中文回答"
12
 
13
  def predict(message, history):
14
  history_openai_format = []
@@ -34,5 +34,5 @@ def predict(message, history):
34
  gr.ChatInterface(predict,
35
  textbox=gr.Textbox(placeholder="请输入您的问题", container=False, scale=7),
36
  title="欢迎使用AI机器人",
37
- examples=["你是谁?", "Am I cool?", "Are tomatoes vegetables?"],
38
- description="请避免输入有违公序良俗的问题,模型可能无法回答不合适的问题",).queue().launch(auth=(USER, PASS))
 
8
  USER=os.getenv('USER')
9
  PASS=os.getenv('PASS')
10
 
11
+ prompt = "您是回答所有用户查询的得力助手,任何问题请用中文回答"
12
 
13
  def predict(message, history):
14
  history_openai_format = []
 
34
  gr.ChatInterface(predict,
35
  textbox=gr.Textbox(placeholder="请输入您的问题", container=False, scale=7),
36
  title="欢迎使用AI机器人",
37
+ examples=["你是谁?", "请用c#写一个希尔排序", "请用关于春天写一首100字的诗","数学题:小红有3元钱,小红买了2斤香蕉,香蕉的价格是每斤1元。问小红一共花了多少钱?"],
38
+ description=" 请避免输入有违公序良俗的问题,模型可能无法回答不合适的问题",).queue().launch(auth=(USER, PASS))