Jumpy-pku commited on
Commit
0318ad0
1 Parent(s): b73dff0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,5 +22,5 @@ def predict(input_text):
22
  return pipe(f"“{input_text}”{comp_prompt}", max_length=20, num_return_sequences=1)[0]["generated_text"]
23
 
24
 
25
- demo = gr.Interface(fn=predict, inputs="text", outputs="text", title="菜名生成", description="Input the instructions of a Chinese recipe, the model will generate the corresponding dish name.\\输入菜谱步骤,生成菜名。")
26
  demo.launch()
 
22
  return pipe(f"“{input_text}”{comp_prompt}", max_length=20, num_return_sequences=1)[0]["generated_text"]
23
 
24
 
25
+ demo = gr.Interface(fn=predict, inputs="text", outputs="text", title="菜名生成", description="Input the instructions of a Chinese recipe, the model will generate the corresponding dish name.\n输入菜谱步骤,生成菜名。")
26
  demo.launch()