ing0 commited on
Commit
ad80ee3
·
1 Parent(s): 6dc00eb

upload logo

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -135,16 +135,12 @@ css = """
135
  }
136
 
137
  """
138
- def image_to_base64(image_path):
139
- with open(image_path, "rb") as f:
140
- return f"data:image/png;base64,{base64.b64encode(f.read()).decode('utf-8')}"
141
-
142
 
143
  with gr.Blocks(css=css) as demo:
144
  # gr.Markdown("<h1 style='text-align: center'>DiffRhythm (谛韵)</h1>")
145
  gr.HTML(f"""
146
  <div style="display: flex; align-items: center;">
147
- <img src='{image_to_base64("./src/DiffRhythm.jpg")}'
148
  style='width: 200px; height: 40%; display: block; margin: 0 auto 20px;'>
149
  </div>
150
 
 
135
  }
136
 
137
  """
 
 
 
 
138
 
139
  with gr.Blocks(css=css) as demo:
140
  # gr.Markdown("<h1 style='text-align: center'>DiffRhythm (谛韵)</h1>")
141
  gr.HTML(f"""
142
  <div style="display: flex; align-items: center;">
143
+ <img src='https://raw.githubusercontent.com/ASLP-lab/DiffRhythm/refs/heads/main/src/DiffRhythm_logo.jpg'
144
  style='width: 200px; height: 40%; display: block; margin: 0 auto 20px;'>
145
  </div>
146