prithivMLmods commited on
Commit
128b3ea
·
verified ·
1 Parent(s): f619913

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -24
app.py CHANGED
@@ -296,29 +296,6 @@ def generate(
296
  output_file = asyncio.run(text_to_speech(final_response, voice))
297
  yield gr.Audio(output_file, autoplay=True)
298
 
299
- # ------------------------------
300
- # Sample Examples
301
- # ------------------------------
302
-
303
- # The examples include a text generation example, two TTS examples, and one sample for each LoRA command.
304
- examples = [
305
- ["Python Program for Array Rotation"],
306
- ["@tts1 Who is Nikola Tesla, and why did he die?"],
307
- ["@realism A futuristic cityscape with neon lights"],
308
- ["@pixar A whimsical scene featuring a playful robot in a vibrant setting"],
309
- ["@photoshoot A portrait of a person with dramatic lighting"],
310
- ["@clothing Fashionable streetwear in an urban environment"],
311
- ["@interior A modern living room interior with minimalist design"],
312
- ["@fashion A runway model in haute couture"],
313
- ["@minimalistic A simple and elegant design of a serene landscape"],
314
- ["@modern A contemporary art piece with abstract geometric shapes"],
315
- ["@animaliea A cute animal portrait with vibrant colors"],
316
- ["@wallpaper A scenic mountain range perfect for a desktop wallpaper"],
317
- ["@cars A sleek sports car cruising on a city street"],
318
- ["@pencilart A detailed pencil sketch of a historic building"],
319
- ["@artminimalistic An artistic minimalist composition with subtle tones"],
320
- ["@tts2 What causes rainbows to form?"],
321
- ]
322
 
323
  demo = gr.ChatInterface(
324
  fn=generate,
@@ -329,7 +306,24 @@ demo = gr.ChatInterface(
329
  gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50),
330
  gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2),
331
  ],
332
- examples=examples,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  cache_examples=False,
334
  type="messages",
335
  description=DESCRIPTION,
 
296
  output_file = asyncio.run(text_to_speech(final_response, voice))
297
  yield gr.Audio(output_file, autoplay=True)
298
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
 
300
  demo = gr.ChatInterface(
301
  fn=generate,
 
306
  gr.Slider(label="Top-k", minimum=1, maximum=1000, step=1, value=50),
307
  gr.Slider(label="Repetition penalty", minimum=1.0, maximum=2.0, step=0.05, value=1.2),
308
  ],
309
+ examples = [
310
+ ["Python Program for Array Rotation"],
311
+ ["@tts1 Who is Nikola Tesla, and why did he die?"],
312
+ ["@realism A futuristic cityscape with neon lights"],
313
+ ["@pixar A whimsical scene featuring a playful robot in a vibrant setting"],
314
+ ["@photoshoot A portrait of a person with dramatic lighting"],
315
+ ["@clothing Fashionable streetwear in an urban environment"],
316
+ ["@interior A modern living room interior with minimalist design"],
317
+ ["@fashion A runway model in haute couture"],
318
+ ["@minimalistic A simple and elegant design of a serene landscape"],
319
+ ["@modern A contemporary art piece with abstract geometric shapes"],
320
+ ["@animaliea A cute animal portrait with vibrant colors"],
321
+ ["@wallpaper A scenic mountain range perfect for a desktop wallpaper"],
322
+ ["@cars A sleek sports car cruising on a city street"],
323
+ ["@pencilart A detailed pencil sketch of a historic building"],
324
+ ["@artminimalistic An artistic minimalist composition with subtle tones"],
325
+ ["@tts2 What causes rainbows to form?"],
326
+ ],
327
  cache_examples=False,
328
  type="messages",
329
  description=DESCRIPTION,