baptistejamin commited on
Commit
5f11692
1 Parent(s): 67df4ab
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ def generate_response(tache, article):
8
  model = "ft:gpt-3.5-turbo-0613:personal::8C0XIiJC"
9
  prefix = "Trouve un titre pour cet article:\n\n"
10
 
11
- if tache == "chapeau":
12
  model = "gpt-3.5-turbo"
13
  prefix = "Trouve un premier paragraphe introductif de 200 signes pour cet article:\n\n"
14
 
@@ -32,7 +32,7 @@ def generate_response(tache, article):
32
  def main():
33
  interface = gr.Interface(
34
  fn=generate_response,
35
- inputs=[gr.Dropdown(choices=["titre", "chapeau"], value="titre"), gr.Textbox(lines=50, placeholder="Entrez votre article ici...")],
36
  outputs="text",
37
  title="Générateur de titre",
38
  description="Entrez un article"
 
8
  model = "ft:gpt-3.5-turbo-0613:personal::8C0XIiJC"
9
  prefix = "Trouve un titre pour cet article:\n\n"
10
 
11
+ if tache == "chapo":
12
  model = "gpt-3.5-turbo"
13
  prefix = "Trouve un premier paragraphe introductif de 200 signes pour cet article:\n\n"
14
 
 
32
  def main():
33
  interface = gr.Interface(
34
  fn=generate_response,
35
+ inputs=[gr.Dropdown(choices=["titre", "chapo"], value="titre"), gr.Textbox(lines=50, placeholder="Entrez votre article ici...")],
36
  outputs="text",
37
  title="Générateur de titre",
38
  description="Entrez un article"