awacke1 commited on
Commit
45a0743
1 Parent(s): 3cfa6d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -24,9 +24,9 @@ def display_next100(dataframe, end):
24
 
25
  #Gradio Blocks
26
  with gr.Blocks() as demo:
27
- gr.Markdown("<h1><center>Utility Gradio Space for viewing PlaygroundAI Images</center></h1>")
28
  gr.Markdown(
29
- """<div align="center">This Tool helps you to analyze and inspect the images and corresponding prompts from <a href = "https://playgroundai.com/">Playground AI</a> Images.<br><a href="https://twitter.com/Suhail">Suhail</a> has recently shared an open dataset of all the liked images and their prompts from PlaygroundAI on <a href="https://github.com/playgroundai/liked_images">Github here</a>. This is an attempt to explore this dataset beautifully using the power and flexibility of Gradio!<br><b>To use the tool:</b>First, click on the 'Initial' button, and then iteratively on the 'Next 10' button.<br><b>Bonus:</b>Click on images to get the original PlaygroundAI image displayed on next tab</div>""")
30
 
31
  with gr.Row():
32
  num_end = gr.Number(visible=False)
@@ -39,6 +39,6 @@ with gr.Blocks() as demo:
39
  b1.click(fn=display_df, outputs=out_dataframe)
40
  b2.click(fn=display_next100, inputs= [out_dataframe, num_end ], outputs=[out_dataframe, num_end])
41
 
42
- gr.Markdown("<center>Please note that the Playground AI dataset shared on GitHub doesn't have images but links to those images. The idea is to get the maximum benefit out of this dataset and to find the best way to explore this dataset. Gradio enables us to embed markdowns within a dataframe, thus this app is able to display actual images instead of direct links(meh!). I hope you will have as much fun playing with this Space as I had building it.</center>")
43
 
44
  demo.launch(debug=True, show_error=True)
 
24
 
25
  #Gradio Blocks
26
  with gr.Blocks() as demo:
27
+ gr.Markdown("<h1><center>AIPromptSearch</center></h1>")
28
  gr.Markdown(
29
+ """<div align="center">Images and Prompts from <a href = "https://playgroundai.com/">Playground AI</a> Images. Github:<a href="https://github.com/playgroundai/liked_images">Github</a>.""")
30
 
31
  with gr.Row():
32
  num_end = gr.Number(visible=False)
 
39
  b1.click(fn=display_df, outputs=out_dataframe)
40
  b2.click(fn=display_next100, inputs= [out_dataframe, num_end ], outputs=[out_dataframe, num_end])
41
 
42
+ #gr.Markdown("<center></center>")
43
 
44
  demo.launch(debug=True, show_error=True)