dengkane commited on
Commit
670aefc
·
1 Parent(s): a886c07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ set_seed(42)
7
  # 引入后台代码
8
  def backend(question):
9
  # 在这里编写后台处理代码,此处为示例
10
- res = generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
11
  return res
12
 
13
  # 构建页面布局
 
7
  # 引入后台代码
8
  def backend(question):
9
  # 在这里编写后台处理代码,此处为示例
10
+ res = generator("question: " + question + "\nanswer: ", max_length=30, num_return_sequences=5)
11
  return res
12
 
13
  # 构建页面布局