stonapse64 commited on
Commit
304bd57
1 Parent(s): 6f20dfc

Added table

Browse files
Files changed (3) hide show
  1. Siemens_logo.png +0 -0
  2. app.py +7 -19
  3. static/Siemens_logo.png +0 -0
Siemens_logo.png ADDED
app.py CHANGED
@@ -2,35 +2,23 @@ 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" alt="My Image">
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
  #
 
2
 
3
  gr.set_static_paths(paths=["images/"])
4
 
5
+ bellamy_bowie_description = """<img src="static/Siemens_logo.png" alt="My Image"/>"""
6
+ urly_murly_simmy_description = """<img src="static/Siemens_logo.png" alt="My Image" style="float: left; margin-right: 10px;" />"""
7
+ ellis_cappy_description = "![Siemens Logo](static/Siemens_logo.png)"
8
+
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  def greeting(name):
11
  return f"Hello {name}"
12
 
 
13
  bellamy_bowie = gr.Interface(greeting, "text", "text", description=bellamy_bowie_description)
14
+ urly_murly_simmy = gr.Interface(lambda name: "Hello " + name, "text", "text", description=urly_murly_simmy_description)
15
+ ellis_cappy = gr.Interface(lambda name: "Hello " + name, "text", "text", description=ellis_cappy_description)
16
 
17
  demo = gr.TabbedInterface(
18
  [bellamy_bowie, urly_murly_simmy, ellis_cappy],
19
  ["Bellamy Bowie", "Urly & Murly Simmy", "Ellis Cappy"], head=bellamy_bowie_description)
20
 
21
+ demo.launch(allowed_paths=["static"])
22
 
23
  # import gradio as gr
24
  #
static/Siemens_logo.png ADDED