carlosrosash commited on
Commit
d383353
1 Parent(s): de9228b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -13
app.py CHANGED
@@ -89,15 +89,8 @@ title = """
89
  <h1 style='text-align: center; font-weight: bold; font-size: 50px;'> Bellay, le premier LLM de la littérature française</h1>
90
  """
91
  description = """
92
- <p style='text-align: justify;'>
93
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus elementum leo a
94
- tortor fringilla elementum. Nullam eget sodales lacus. Nullam non aliquet elit.
95
- Etiam enim arcu, vehicula nec enim id, laoreet sodales justo. Nulla feugiat non
96
- leo in interdum. Quisque id leo ligula. Etiam id quam urna. Morbi tincidunt eros
97
- in eros vulputate, a congue enim feugiat. Ut laoreet ex in dui ultrices elementum.
98
- Vivamus eget venenatis dui. Vestibulum dictum ipsum eu mauris convallis, sit amet
99
- sollicitudin orci lacinia. Nunc pellentesque hendrerit felis eleifend interdum.
100
- Ut ac volutpat nisi.
101
  </p>
102
  """
103
  list_dropdown = [
@@ -184,7 +177,7 @@ image_urls = {
184
  'Romans romantiques':'https://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Chateaubriand%2C_Stendhal%2C_Balzac%2C_Hugo%2C_quatre_portraits.jpg/400px-Chateaubriand%2C_Stendhal%2C_Balzac%2C_Hugo%2C_quatre_portraits.jpg',
185
  'Théâtre absurde': 'https://upload.wikimedia.org/wikipedia/commons/thumb/d/d6/En_attendant_Godot%2C_Festival_d%27Avignon%2C_1978.jpeg/1920px-En_attendant_Godot%2C_Festival_d%27Avignon%2C_1978.jpeg',
186
  'Romans belle époque': 'https://centoparole.it/wp-content/uploads/2015/10/1-belle-epoque-1880-1914.net_.jpg',
187
- 'Bible Segond': 'https://m.media-amazon.com/images/I/41M1hPjWwGL._AC_UF1000,1000_QL80_.jpg',
188
  'Zola': 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Emile_Zola_1902.jpg/440px-Emile_Zola_1902.jpg',
189
  'Pagnol': 'https://upload.wikimedia.org/wikipedia/commons/7/79/Pagnol_Harcourt_1948.jpg',
190
  'Philosophie': 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Hortus_Deliciarum%2C_Philosophy_and_the_seven_liberal_arts_%28cropped%29.jpg/1920px-Hortus_Deliciarum%2C_Philosophy_and_the_seven_liberal_arts_%28cropped%29.jpg',
@@ -215,7 +208,8 @@ def update_explanation(choice):
215
  # Define the Gradio interface using Blocks
216
  with gr.Blocks(theme = 'carlosrosash/bellay_test') as demo:
217
  gr.Markdown(title)
218
- gr.Markdown(description)
 
219
 
220
  # Define the column for dropdown, explanation, and image
221
  with gr.Row(variant = 'panel'):
@@ -231,9 +225,9 @@ with gr.Blocks(theme = 'carlosrosash/bellay_test') as demo:
231
  temperature_slider = gr.Slider(label="Temperature", value=0.7, minimum=0.05, maximum=1.0, step=0.05, interactive=True)
232
  with gr.Row():
233
  with gr.Column():
234
- clear_button = gr.Button("Effacer", variant = "secondary")
235
  with gr.Column():
236
- submit_button = gr.Button("Envoyer 🖋️", variant = "primary")
237
  with gr.Column(variant = 'panel'):
238
  output_text = gr.Textbox(label="Réponse", type="text", lines=10)
239
 
 
89
  <h1 style='text-align: center; font-weight: bold; font-size: 50px;'> Bellay, le premier LLM de la littérature française</h1>
90
  """
91
  description = """
92
+ <p style='text-align: justify; font-weight: italics'>
93
+ Ainsi puis-je dire de notre langue, qui commence encore à fleurir sans fructifier, ou plutôt, comme une plante et vergette, n’a point encore fleuri, tant s’en faut qu’elle ait apporté tout le fruit qu’elle pourrait bien produire. Cela certainement non pour le défaut de la nature d’elle, aussi apte à engendrer que les autres, mais pour la coulpe de ceux qui l’ont eue en garde, et ne l’ont cultivée à suffisance, mais comme une plante sauvage, en celui même désert où elle avait commencé à naître, sans jamais l’arroser, la tailler, ni défendre des ronces et épines qui lui faisaient ombre, l’ont laissée envieillir et quasi mourir.
 
 
 
 
 
 
 
94
  </p>
95
  """
96
  list_dropdown = [
 
177
  'Romans romantiques':'https://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Chateaubriand%2C_Stendhal%2C_Balzac%2C_Hugo%2C_quatre_portraits.jpg/400px-Chateaubriand%2C_Stendhal%2C_Balzac%2C_Hugo%2C_quatre_portraits.jpg',
178
  'Théâtre absurde': 'https://upload.wikimedia.org/wikipedia/commons/thumb/d/d6/En_attendant_Godot%2C_Festival_d%27Avignon%2C_1978.jpeg/1920px-En_attendant_Godot%2C_Festival_d%27Avignon%2C_1978.jpeg',
179
  'Romans belle époque': 'https://centoparole.it/wp-content/uploads/2015/10/1-belle-epoque-1880-1914.net_.jpg',
180
+ 'Bible Segond': 'https://www.messagerchretien.com/upload/produits/3591/02.jpg',
181
  'Zola': 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Emile_Zola_1902.jpg/440px-Emile_Zola_1902.jpg',
182
  'Pagnol': 'https://upload.wikimedia.org/wikipedia/commons/7/79/Pagnol_Harcourt_1948.jpg',
183
  'Philosophie': 'https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Hortus_Deliciarum%2C_Philosophy_and_the_seven_liberal_arts_%28cropped%29.jpg/1920px-Hortus_Deliciarum%2C_Philosophy_and_the_seven_liberal_arts_%28cropped%29.jpg',
 
208
  # Define the Gradio interface using Blocks
209
  with gr.Blocks(theme = 'carlosrosash/bellay_test') as demo:
210
  gr.Markdown(title)
211
+ with gr.Column(variant = 'panel'):
212
+ gr.Markdown(description)
213
 
214
  # Define the column for dropdown, explanation, and image
215
  with gr.Row(variant = 'panel'):
 
225
  temperature_slider = gr.Slider(label="Temperature", value=0.7, minimum=0.05, maximum=1.0, step=0.05, interactive=True)
226
  with gr.Row():
227
  with gr.Column():
228
+ clear_button = gr.Button("Effacer", variant = "primary")
229
  with gr.Column():
230
+ submit_button = gr.Button("Envoyer 🖋️", variant = "secondary")
231
  with gr.Column(variant = 'panel'):
232
  output_text = gr.Textbox(label="Réponse", type="text", lines=10)
233