halimbahae commited on
Commit
5ed51f9
·
verified ·
1 Parent(s): 6ac5758

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -66,31 +66,31 @@ with gr.Blocks() as demo:
66
  with gr.Row():
67
  chat_message = gr.Textbox(label="Entrez votre message", lines=5)
68
  response = gr.Textbox(label="Réponse", interactive=False, lines=15, max_lines=50)
69
- chat_message.submit(creer_materiel_pedagogique, chat_message, response)
70
 
71
  with gr.Tab("Création de devoirs 📝"):
72
  with gr.Row():
73
  chat_message = gr.Textbox(label="Entrez votre message", lines=5)
74
  response = gr.Textbox(label="Réponse", interactive=False, lines=15, max_lines=50)
75
- chat_message.submit(creation_devoir, chat_message, response)
76
 
77
  with gr.Tab("Lettres de recommandation ✒️"):
78
  with gr.Row():
79
  chat_message = gr.Textbox(label="Entrez votre message", lines=5)
80
  response = gr.Textbox(label="Réponse", interactive=False, lines=15, max_lines=50)
81
- chat_message.submit(lettre_recommandation, chat_message, response)
82
 
83
  with gr.Tab("Brainstorming d'idées 💡"):
84
  with gr.Row():
85
  chat_message = gr.Textbox(label="Entrez votre message", lines=5)
86
  response = gr.Textbox(label="Réponse", interactive=False, lines=15, max_lines=50)
87
- chat_message.submit(brainstorming_idees, chat_message, response)
88
 
89
  with gr.Tab("Génération de questions d'exercice ❓"):
90
  with gr.Row():
91
  chat_message = gr.Textbox(label="Entrez votre message", lines=5)
92
  response = gr.Textbox(label="Réponse", interactive=False, lines=15, max_lines=50)
93
- chat_message.submit(generation_questions_exercice, chat_message, response)
94
 
95
  gr.Markdown("---\nConstruit avec ❤️ par [Bahae Eddine HALIM](https://www.linkedin.com/in/halimbahae/)")
96
 
 
66
  with gr.Row():
67
  chat_message = gr.Textbox(label="Entrez votre message", lines=5)
68
  response = gr.Textbox(label="Réponse", interactive=False, lines=15, max_lines=50)
69
+ gr.Button("Envoyer").click(creer_materiel_pedagogique, chat_message, response)
70
 
71
  with gr.Tab("Création de devoirs 📝"):
72
  with gr.Row():
73
  chat_message = gr.Textbox(label="Entrez votre message", lines=5)
74
  response = gr.Textbox(label="Réponse", interactive=False, lines=15, max_lines=50)
75
+ gr.Button("Envoyer").click(creation_devoir, chat_message, response)
76
 
77
  with gr.Tab("Lettres de recommandation ✒️"):
78
  with gr.Row():
79
  chat_message = gr.Textbox(label="Entrez votre message", lines=5)
80
  response = gr.Textbox(label="Réponse", interactive=False, lines=15, max_lines=50)
81
+ gr.Button("Envoyer").click(lettre_recommandation, chat_message, response)
82
 
83
  with gr.Tab("Brainstorming d'idées 💡"):
84
  with gr.Row():
85
  chat_message = gr.Textbox(label="Entrez votre message", lines=5)
86
  response = gr.Textbox(label="Réponse", interactive=False, lines=15, max_lines=50)
87
+ gr.Button("Envoyer").click(brainstorming_idees, chat_message, response)
88
 
89
  with gr.Tab("Génération de questions d'exercice ❓"):
90
  with gr.Row():
91
  chat_message = gr.Textbox(label="Entrez votre message", lines=5)
92
  response = gr.Textbox(label="Réponse", interactive=False, lines=15, max_lines=50)
93
+ gr.Button("Envoyer").click(generation_questions_exercice, chat_message, response)
94
 
95
  gr.Markdown("---\nConstruit avec ❤️ par [Bahae Eddine HALIM](https://www.linkedin.com/in/halimbahae/)")
96