acumplido commited on
Commit
fd59c90
1 Parent(s): b3a7141

Add example to demo

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -120,6 +120,18 @@ def gradio_app():
120
  fn=submit_input, inputs=[input_], outputs=[output], api_name="get-results"
121
  )
122
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  demo.launch(show_api=True)
124
 
125
 
 
120
  fn=submit_input, inputs=[input_], outputs=[output], api_name="get-results"
121
  )
122
 
123
+ with gr.Row():
124
+ with gr.Column(scale=0.5):
125
+ gr.Examples(
126
+ label="Short prompts:",
127
+ examples=[
128
+ ["""Quina és la finalitat del Servei Meterològic de Catalunya ?"""],
129
+ ],
130
+ inputs=input_,
131
+ outputs=output,
132
+ fn=submit_input,
133
+ )
134
+
135
  demo.launch(show_api=True)
136
 
137