hmb HF Staff commited on
Commit
2486024
·
verified ·
1 Parent(s): 6d15ed3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,10 +33,10 @@ with gr.Blocks(fill_height=True) as demo:
33
  bubble_full_width=False,
34
  scale=1,
35
  placeholder='<h1 style="font-weight: bold; color: #FFFFFF; text-align: center; font-size: 48px; font-family: Arial, sans-serif;">Welcome to Gradio!</h1>',
36
- examples=[{"icon": os.path.join(os.path.dirname(__file__), "files/avatar.png"), "display_text": "Display Text Here!", "text": "Try this example with this audio.", "files": [os.path.join(os.path.dirname(__file__), "files/cantina.wav")]},
37
- {"text": "Try this example with this image.", "files": [os.path.join(os.path.dirname(__file__), "files/avatar.png")]},
38
  {"text": "This is just text, no files!"},
39
- {"text": "Try this example with this image.", "files": [os.path.join(os.path.dirname(__file__), "files/avatar.png"), os.path.join(os.path.dirname(__file__), "files/avatar.png")]},
40
  {"text": "Try this example with this Audio.", "files": [os.path.join(os.path.dirname(__file__), "files/cantina.wav")]}]
41
  )
42
 
 
33
  bubble_full_width=False,
34
  scale=1,
35
  placeholder='<h1 style="font-weight: bold; color: #FFFFFF; text-align: center; font-size: 48px; font-family: Arial, sans-serif;">Welcome to Gradio!</h1>',
36
+ examples=[{"icon": os.path.join(os.path.dirname(__file__), "https://i.insider.com/5df14d0ee94e860668396b82?width=2000&format=jpeg&auto=webp"), "display_text": "Display Text Here!", "text": "Try this example with this audio.", "files": [os.path.join(os.path.dirname(__file__), "files/cantina.wav")]},
37
+ {"text": "Try this example with this image.", "files": [os.path.join(os.path.dirname(__file__), "https://i.insider.com/5df14d0ee94e860668396b82?width=2000&format=jpeg&auto=webp")]},
38
  {"text": "This is just text, no files!"},
39
+ {"text": "Try this example with this image.", "files": [os.path.join(os.path.dirname(__file__), "https://i.insider.com/5df14d0ee94e860668396b82?width=2000&format=jpeg&auto=webp"), os.path.join(os.path.dirname(__file__), "https://i.insider.com/5df14d0ee94e860668396b82?width=2000&format=jpeg&auto=webp")]},
40
  {"text": "Try this example with this Audio.", "files": [os.path.join(os.path.dirname(__file__), "files/cantina.wav")]}]
41
  )
42