stonapse64 commited on
Commit
cc35dba
1 Parent(s): a4099cf

Added table

Browse files
Files changed (2) hide show
  1. app.py +17 -20
  2. resources.py +13 -0
app.py CHANGED
@@ -1,38 +1,35 @@
1
  import gradio as gr
 
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", "/static", "static/", "/static/"])
22
-
23
- # import gradio as gr
24
- #
25
- # # Paths can be a list of strings or pathlib.Path objects
26
- # # corresponding to filenames or directories.
27
- # gr.set_static_paths(paths=["test/test_files/"])
28
- #
29
- # # The example files and the default value of the input
30
- # # will not be copied to the gradio cache and will be served directly.
31
- # demo = gr.Interface(
32
- # lambda s: s.rotate(45),
33
- # gr.Image(value="test/test_files/cheetah1.jpg", type="pil"),
34
- # gr.Image(),
35
- # examples=["test/test_files/bus.png"],
36
- # )
37
- #
38
- # demo.launch()
 
1
  import gradio as gr
2
+ from resources import *
3
 
4
  gr.set_static_paths(paths=["images/"])
5
 
6
  bellamy_bowie_description = """<img src="static/Siemens_logo.png" alt="My Image"/>"""
7
  urly_murly_simmy_description = """<img src="static/Siemens_logo.png" alt="My Image" style="float: left; margin-right: 10px;" />"""
8
+ # ellis_cappy_description = """
9
+ # <table border="0">
10
+ # <tr>
11
+ # <td>
12
+ # <h1>Meet Ellis Cappy: The Quacktastic Caption Creator!</h1><br>
13
+ # Why rely on lazy humans when you can have an AI duck with flair? 🤖🦆<br><br>
14
+ # Ellis Cappy is on a mission to turn mundane visuals into quackingly good content and is the feathered genius behind our image captions! 📸🌟<br><br>
15
+ # Our superior AI duck waddles through pixelated landscapes, its webbed feet tapping out witty one-liners faster than a duckling chasing breadcrumbs. 📝💨<br><br><br>
16
+ # </td>
17
+ # <td rowspan=3><img src="https://images.nightcafe.studio/jobs/1tLpG6zZANbrgG4ds8wF/1tLpG6zZANbrgG4ds8wF--4--andnn.jpg" width=548/></td>
18
+ # </tr>
19
+ # </table>
20
+ # """
21
 
22
 
23
  def greeting(name):
24
  return f"Hello {name}"
25
 
26
+
27
  bellamy_bowie = gr.Interface(greeting, "text", "text", description=bellamy_bowie_description)
28
  urly_murly_simmy = gr.Interface(lambda name: "Hello " + name, "text", "text", description=urly_murly_simmy_description)
29
  ellis_cappy = gr.Interface(lambda name: "Hello " + name, "text", "text", description=ellis_cappy_description)
30
 
31
+ aidademo = gr.TabbedInterface(
32
  [bellamy_bowie, urly_murly_simmy, ellis_cappy],
33
  ["Bellamy Bowie", "Urly & Murly Simmy", "Ellis Cappy"], head=bellamy_bowie_description)
34
 
35
+ aidademo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
resources.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ellis_cappy_description = """
2
+ <table border="0">
3
+ <tr>
4
+ <td>
5
+ <h1>Meet Ellis Cappy: The Quacktastic Caption Creator!</h1><br>
6
+ Why rely on lazy humans when you can have an AI duck with flair? 🤖🦆<br><br>
7
+ Ellis Cappy is on a mission to turn mundane visuals into quackingly good content and is the feathered genius behind our image captions! 📸🌟<br><br>
8
+ Our superior AI duck waddles through pixelated landscapes, its webbed feet tapping out witty one-liners faster than a duckling chasing breadcrumbs. 📝💨<br><br><br>
9
+ </td>
10
+ <td rowspan=3><img src="https://images.nightcafe.studio/jobs/1tLpG6zZANbrgG4ds8wF/1tLpG6zZANbrgG4ds8wF--4--andnn.jpg" width=548/></td>
11
+ </tr>
12
+ </table>
13
+ """