fede97 commited on
Commit
fca257f
1 Parent(s): 68c922f

add more examples

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ Demo instructions:
34
  # (L<sup>2</sup>) - Latin Language Model
35
  title= "LatinGPT"
36
  article= "hello world ..."
37
- examples= ['Accidere ex una scintilla', 'Audacter calumniare,', 'Consolatium misero comites']
38
  logo_image= 'ITSERR_row_logo.png'
39
 
40
  def generate_text(prompt, slider):
@@ -116,7 +116,7 @@ with gr.Blocks(css=custom_css) as demo:
116
  with gr.Column():
117
  output_text = gr.Textbox(lines=5, placeholder="Output text will appear here...", label="Output Text")
118
 
119
- gr.Examples(examples=examples, inputs=input_text, cache_examples=true)
120
  temperature_slider = gr.Slider(minimum=0.1, maximum=5.0, step=0.1, value=1.0, label="Temperature")
121
 
122
  clean_button = gr.Button("Generate Text")
 
34
  # (L<sup>2</sup>) - Latin Language Model
35
  title= "LatinGPT"
36
  article= "hello world ..."
37
+ examples= ['Accidere ex una scintilla', 'Audacter calumniare,', 'Consolatium misero comites', 'Errare humanum est,', 'Excusatio non petita,']
38
  logo_image= 'ITSERR_row_logo.png'
39
 
40
  def generate_text(prompt, slider):
 
116
  with gr.Column():
117
  output_text = gr.Textbox(lines=5, placeholder="Output text will appear here...", label="Output Text")
118
 
119
+ gr.Examples(examples=examples, inputs=input_text) # , cache_examples="true"
120
  temperature_slider = gr.Slider(minimum=0.1, maximum=5.0, step=0.1, value=1.0, label="Temperature")
121
 
122
  clean_button = gr.Button("Generate Text")