samadhan2601 commited on
Commit
3059ead
·
verified ·
1 Parent(s): cba8df8

update app.py with gallery

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -1,7 +1,10 @@
1
- import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
 
 
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
1
+ import gradio as gr
2
 
3
+ with gr.Blocks() as demo:
4
+ images = [
5
+ "https://huggingface.co/spaces/samadhan2601/Linux_Gallery/blob/main/20210331_093718-1.jpg",
6
+ "https://huggingface.co/spaces/samadhan2601/Linux_Gallery/blob/main/RTSP_2024-01-11_04%2054%2022%2B0900_interval.jpg",
7
+ ]
8
+ gr.Gallery(value=images, columns=4)
9
 
10
+ demo.launch()