danhtran2mind commited on
Commit
bd4c776
·
verified ·
1 Parent(s): 1b80cfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -15
app.py CHANGED
@@ -1,17 +1,3 @@
1
- # Copyright (c) 2025 xAI and/or its affiliates. All rights reserved.
2
-
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
-
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
  import dataclasses
16
  import json
17
  from pathlib import Path
@@ -164,7 +150,11 @@ def create_demo(
164
  gr.Markdown("# Ghibli-Style Image Generator")
165
  gr.Markdown(badges_text)
166
  gr.Markdown("Generate images in Ghibli style using a fine-tuned Stable Diffusion model. Select an example below to load a pre-generated image or enter a prompt to generate a new one.")
167
- gr.Markdown("**Note:** For CPU inference, execution time is long (e.g., for 64x64 resolution with 50 inference steps, time is approximately 1800 seconds).")
 
 
 
 
168
 
169
  with gr.Row():
170
  with gr.Column():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import dataclasses
2
  import json
3
  from pathlib import Path
 
150
  gr.Markdown("# Ghibli-Style Image Generator")
151
  gr.Markdown(badges_text)
152
  gr.Markdown("Generate images in Ghibli style using a fine-tuned Stable Diffusion model. Select an example below to load a pre-generated image or enter a prompt to generate a new one.")
153
+ gr.HTML("""<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
154
+ <div>
155
+ <strong>Note:</strong> For CPU inference, execution time is long (e.g., for \(64 \times 64\) resolution with 50 inference steps, time is approximately 1800 seconds).
156
+ </div>
157
+ """)
158
 
159
  with gr.Row():
160
  with gr.Column():