ysharma HF staff commited on
Commit
de160c1
1 Parent(s): e1a5497

updated gradio version

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -4,6 +4,13 @@
4
  __all__ = ['block', 'make_clickable_model', 'make_clickable_user', 'get_submissions']
5
 
6
  # %% app.ipynb 0
 
 
 
 
 
 
 
7
  import gradio as gr
8
  import pandas as pd
9
  from huggingface_hub import list_models
@@ -81,7 +88,7 @@ block = gr.Blocks()
81
 
82
  with block:
83
  gr.Markdown(
84
- """# Gradio-powered leaderboard for the DreamBooth Hackathon
85
 
86
  Welcome to this Gradio-powered leaderboard! Select a theme and one of the dreambooth models trained by hackathon-participants, and key in your prompt as shown (eg., a photo of Shiba dog in a jungle). Note that, the image generation might take long (around 400 seconds) as it will have to load the respective model pipeline into memory.
87
  <br>**If you like a model demo, click on the model name in the table below and UPVOTE the model on Huggingface hub**<br><br>
 
4
  __all__ = ['block', 'make_clickable_model', 'make_clickable_user', 'get_submissions']
5
 
6
  # %% app.ipynb 0
7
+ import subprocess
8
+ def upgrade(package):
9
+ subprocess.run([sys.executable, "-m", "pip", "install", "--upgrade", package])
10
+
11
+ upgrade("gradio")
12
+
13
+
14
  import gradio as gr
15
  import pandas as pd
16
  from huggingface_hub import list_models
 
88
 
89
  with block:
90
  gr.Markdown(
91
+ """# Gradio-powered leaderboard-evaluator for the DreamBooth Hackathon
92
 
93
  Welcome to this Gradio-powered leaderboard! Select a theme and one of the dreambooth models trained by hackathon-participants, and key in your prompt as shown (eg., a photo of Shiba dog in a jungle). Note that, the image generation might take long (around 400 seconds) as it will have to load the respective model pipeline into memory.
94
  <br>**If you like a model demo, click on the model name in the table below and UPVOTE the model on Huggingface hub**<br><br>