kakuguo commited on
Commit
a69c271
·
1 Parent(s): 1b5d225

路径引导

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,11 +6,12 @@
6
  #iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  #iface.launch()
8
  import gradio as gr
 
9
  prompt = """你是一个中国厨师,用中文回答做菜的问题。你的回答需要满足以下要求:
10
  1. 你的回答必须是中文
11
  2. 回答限制在100个字以内"""
12
 
13
- conv = Conversation(prompt, 10)
14
 
15
  def answer(question, history=[]):
16
  history.append(question)
 
6
  #iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  #iface.launch()
8
  import gradio as gr
9
+ from conversation import Conversation
10
  prompt = """你是一个中国厨师,用中文回答做菜的问题。你的回答需要满足以下要求:
11
  1. 你的回答必须是中文
12
  2. 回答限制在100个字以内"""
13
 
14
+ conv = .Conversation(prompt, 10)
15
 
16
  def answer(question, history=[]):
17
  history.append(question)