davidberenstein1957 commited on
Commit
5cb182c
·
1 Parent(s): a65206d

feat: add new "FLUX.1 [dev] examples" tab in app.py with embedded Notion iframe, and update "About" section iframe for enhanced user engagement and information access

Browse files
Files changed (1) hide show
  1. app.py +11 -31
app.py CHANGED
@@ -67,38 +67,18 @@ with gr.Blocks("ParityError/Interstellar", css=custom_css) as demo:
67
  select_columns=df.columns.tolist(),
68
  datatype="markdown",
69
  )
 
 
 
 
 
 
70
  with gr.TabItem("About"):
71
- with gr.Row():
72
- with gr.Column(scale=1):
73
- gr.Markdown(
74
- """
75
- # 💜 About Pruna AI
76
- We are [Pruna AI, an open source AI optimisation engine](https://github.com/PrunaAI/pruna) and we simply make your models cheaper, faster, smaller, greener!
77
-
78
- # 📊 About InferBench
79
- InferBench is a leaderboard for inference providers, focusing on cost, quality, and speed.
80
- Over the past few years, we’ve observed outstanding progress in image generation models fueled by ever-larger architectures.
81
- Due to their size, state-of-the-art models such as FLUX take more than 6 seconds to generate a single image on a high-end H100 GPU.
82
- While compression techniques can reduce inference time, their impact on quality often remains unclear.
83
-
84
- To bring more transparency around the quality of compressed models:
85
-
86
- - We release “juiced” endpoints for popular image generation models on Replicate, making it easy to play around with our compressed models.
87
- - We assess the quality of compressed FLUX-APIs from Replicate, fal, Fireworks AI and Together AI according to different benchmarks.
88
-
89
- FLUX-juiced was obtained using a combination of compilation and caching algorithms and we are proud to say that it consistently outperforms alternatives, while delivering performance on par with the original model.
90
- This combination is available in our Pruna Pro package and can be applied to almost every image generation model.
91
-
92
- - A full blogpost on the methodology can be found [here](https://pruna.ai/blog/flux-juiced).
93
- - A website that compares the outputs of the different models can be found [here](https://www.notion.so/FLUX-juiced-1d270a039e5f80c6a2a3c00fc0d75ef0?pvs=4).
94
- """
95
- )
96
- with gr.Column(scale=1):
97
- gr.HTML(
98
- """
99
- <iframe src="https://www.notion.so/FLUX-juiced-1d270a039e5f80c6a2a3c00fc0d75ef0?pvs=4" width="100%" height="100%" frameborder="0"></iframe>
100
- """
101
- )
102
 
103
  with gr.Accordion("🌍 Join the Pruna AI community!", open=False):
104
  gr.HTML(
 
67
  select_columns=df.columns.tolist(),
68
  datatype="markdown",
69
  )
70
+ with gr.TabItem("FLUX.1 [dev] examples"):
71
+ gr.HTML(
72
+ """
73
+ <iframe src="https://pruna.notion.site/ebd/1d270a039e5f80c6a2a3c00fc0d75ef0" width="100%" height="900" frameborder="0" allowfullscreen />
74
+ """
75
+ )
76
  with gr.TabItem("About"):
77
+ gr.HTML(
78
+ """
79
+ <iframe src="https://pruna.notion.site/ebd/1d870a039e5f8021aafdd19e844bf2c8" width="100%" height="900" frameborder="0" allowfullscreen />
80
+ """
81
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
83
  with gr.Accordion("🌍 Join the Pruna AI community!", open=False):
84
  gr.HTML(