|
import gradio as gr |
|
|
|
gr.set_static_paths(paths=["images/"]) |
|
|
|
bellamy_bowie_description = """ |
|
<table border="0"> |
|
<tr> |
|
<td>Emil</td> |
|
<td>Tobias</td> |
|
<td>Linus</td> |
|
</tr> |
|
<tr> |
|
<td>16</td> |
|
<td>14</td> |
|
<td>10</td> |
|
</tr> |
|
</table> |
|
<img src="https://huggingface.co/spaces/stonapse/aidademo/blob/main/images/Siemens_logo.png"> |
|
""" |
|
|
|
def greeting(name): |
|
return f"Hello {name}" |
|
|
|
|
|
bellamy_bowie = gr.Interface(greeting, "text", "text", description=bellamy_bowie_description) |
|
urly_murly_simmy = gr.Interface(lambda name: "Hello " + name, "text", "text") |
|
ellis_cappy = gr.Interface(lambda name: "Hello " + name, "text", "text") |
|
|
|
demo = gr.TabbedInterface( |
|
[bellamy_bowie, urly_murly_simmy, ellis_cappy], |
|
["Bellamy Bowie", "Urly & Murly Simmy", "Ellis Cappy"], head=bellamy_bowie_description) |
|
|
|
demo.launch() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|