stonapse commited on
Commit
3addaf9
1 Parent(s): cfd3957

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +50 -50
app.py CHANGED
@@ -1,50 +1,50 @@
1
- import gradio as gr
2
-
3
- gr.set_static_paths(paths=["images/"])
4
-
5
- bellamy_bowie_description = """
6
- <table border="0">
7
- <tr>
8
- <td>Emil</td>
9
- <td>Tobias</td>
10
- <td>Linus</td>
11
- </tr>
12
- <tr>
13
- <td>16</td>
14
- <td>14</td>
15
- <td>10</td>
16
- </tr>
17
- </table>
18
- <img src="images/Siemens_logo.png.jpg">
19
- """
20
-
21
- def greeting(name):
22
- return f"Hello {name}"
23
-
24
-
25
- bellamy_bowie = gr.Interface(greeting, "text", "text", description=bellamy_bowie_description)
26
- urly_murly_simmy = gr.Interface(lambda name: "Hello " + name, "text", "text")
27
- ellis_cappy = gr.Interface(lambda name: "Hello " + name, "text", "text")
28
-
29
- demo = gr.TabbedInterface(
30
- [bellamy_bowie, urly_murly_simmy, ellis_cappy],
31
- ["Bellamy Bowie", "Urly & Murly Simmy", "Ellis Cappy"], head=bellamy_bowie_description)
32
-
33
- demo.launch()
34
-
35
- # import gradio as gr
36
- #
37
- # # Paths can be a list of strings or pathlib.Path objects
38
- # # corresponding to filenames or directories.
39
- # gr.set_static_paths(paths=["test/test_files/"])
40
- #
41
- # # The example files and the default value of the input
42
- # # will not be copied to the gradio cache and will be served directly.
43
- # demo = gr.Interface(
44
- # lambda s: s.rotate(45),
45
- # gr.Image(value="test/test_files/cheetah1.jpg", type="pil"),
46
- # gr.Image(),
47
- # examples=["test/test_files/bus.png"],
48
- # )
49
- #
50
- # demo.launch()
 
1
+ import gradio as gr
2
+
3
+ gr.set_static_paths(paths=["images/"])
4
+
5
+ bellamy_bowie_description = """
6
+ <table border="0">
7
+ <tr>
8
+ <td>Emil</td>
9
+ <td>Tobias</td>
10
+ <td>Linus</td>
11
+ </tr>
12
+ <tr>
13
+ <td>16</td>
14
+ <td>14</td>
15
+ <td>10</td>
16
+ </tr>
17
+ </table>
18
+ <img src="https://huggingface.co/spaces/stonapse/aidademo/blob/main/images/Siemens_logo.png">
19
+ """
20
+
21
+ def greeting(name):
22
+ return f"Hello {name}"
23
+
24
+
25
+ bellamy_bowie = gr.Interface(greeting, "text", "text", description=bellamy_bowie_description)
26
+ urly_murly_simmy = gr.Interface(lambda name: "Hello " + name, "text", "text")
27
+ ellis_cappy = gr.Interface(lambda name: "Hello " + name, "text", "text")
28
+
29
+ demo = gr.TabbedInterface(
30
+ [bellamy_bowie, urly_murly_simmy, ellis_cappy],
31
+ ["Bellamy Bowie", "Urly & Murly Simmy", "Ellis Cappy"], head=bellamy_bowie_description)
32
+
33
+ demo.launch()
34
+
35
+ # import gradio as gr
36
+ #
37
+ # # Paths can be a list of strings or pathlib.Path objects
38
+ # # corresponding to filenames or directories.
39
+ # gr.set_static_paths(paths=["test/test_files/"])
40
+ #
41
+ # # The example files and the default value of the input
42
+ # # will not be copied to the gradio cache and will be served directly.
43
+ # demo = gr.Interface(
44
+ # lambda s: s.rotate(45),
45
+ # gr.Image(value="test/test_files/cheetah1.jpg", type="pil"),
46
+ # gr.Image(),
47
+ # examples=["test/test_files/bus.png"],
48
+ # )
49
+ #
50
+ # demo.launch()