stonapse64
commited on
Commit
·
cfd3957
1
Parent(s):
e64b883
Added table
Browse files- app.py +21 -6
- images/Siemens_logo.png +0 -0
app.py
CHANGED
|
@@ -1,12 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
|
|
|
| 3 |
bellamy_bowie_description = """
|
| 4 |
-
<table>
|
| 5 |
-
<tr>
|
| 6 |
-
<th>Person 1</th>
|
| 7 |
-
<th>Person 2</th>
|
| 8 |
-
<th>Person 3</th>
|
| 9 |
-
</tr>
|
| 10 |
<tr>
|
| 11 |
<td>Emil</td>
|
| 12 |
<td>Tobias</td>
|
|
@@ -18,6 +15,7 @@ bellamy_bowie_description = """
|
|
| 18 |
<td>10</td>
|
| 19 |
</tr>
|
| 20 |
</table>
|
|
|
|
| 21 |
"""
|
| 22 |
|
| 23 |
def greeting(name):
|
|
@@ -33,3 +31,20 @@ demo = gr.TabbedInterface(
|
|
| 33 |
["Bellamy Bowie", "Urly & Murly Simmy", "Ellis Cappy"], head=bellamy_bowie_description)
|
| 34 |
|
| 35 |
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>
|
|
|
|
| 15 |
<td>10</td>
|
| 16 |
</tr>
|
| 17 |
</table>
|
| 18 |
+
<img src="images/Siemens_logo.png.jpg">
|
| 19 |
"""
|
| 20 |
|
| 21 |
def greeting(name):
|
|
|
|
| 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()
|
images/Siemens_logo.png
ADDED
|