Yardenfren commited on
Commit
83c4083
1 Parent(s): 365f659

Update app_inference.py

Browse files
Files changed (1) hide show
  1. app_inference.py +14 -12
app_inference.py CHANGED
@@ -12,16 +12,6 @@ from huggingface_hub import HfApi
12
  from inf import InferencePipeline
13
 
14
 
15
- TITLE = '# Implicit Style-Content Separation using B-LoRA'
16
-
17
-
18
- DESC = '''<center>
19
- This is a demo for our <a href="https://arxiv.org/abs/2403.14572">paper</a>: <b>''Implicit Style-Content Separation using B-LoRA''</b>.
20
- <br>
21
- Project page and code is available <a href="https://b-lora.github.io/B-LoRA/">here</a>.
22
- </center>'''
23
-
24
-
25
  SAMPLE_MODEL_IDS = [
26
  'lora-library/B-LoRA-teddybear',
27
  'lora-library/B-LoRA-bull',
@@ -35,8 +25,12 @@ body {
35
  font-size: 30px;
36
  }
37
 
38
- h1 {
39
- text-align: center;
 
 
 
 
40
  }
41
 
42
  .gr-image {
@@ -150,6 +144,14 @@ app = InferenceUtil(hf_token)
150
 
151
 
152
  with gr.Blocks(css=css) as demo:
 
 
 
 
 
 
 
 
153
  gr.Markdown(TITLE)
154
  gr.Markdown(DESC)
155
  with gr.Row(elem_classes="gr-row"):
 
12
  from inf import InferencePipeline
13
 
14
 
 
 
 
 
 
 
 
 
 
 
15
  SAMPLE_MODEL_IDS = [
16
  'lora-library/B-LoRA-teddybear',
17
  'lora-library/B-LoRA-bull',
 
25
  font-size: 30px;
26
  }
27
 
28
+ #title {
29
+ text-align: center;
30
+ }
31
+
32
+ #title h1 {
33
+ font-size: 250%;
34
  }
35
 
36
  .gr-image {
 
144
 
145
 
146
  with gr.Blocks(css=css) as demo:
147
+ title = gr.HTML(
148
+ '''<h1>Implicit Style-Content Separation using B-LoRA</h1>
149
+ <p>This is a demo for our <a href="https://arxiv.org/abs/2403.14572">paper</a>: <b>''Implicit Style-Content Separation using B-LoRA''</b>.
150
+ <br>
151
+ Project page and code is available <a href="https://b-lora.github.io/B-LoRA/">here</a>.</p>
152
+ ''',
153
+ elem_id="title"
154
+ )
155
  gr.Markdown(TITLE)
156
  gr.Markdown(DESC)
157
  with gr.Row(elem_classes="gr-row"):