fudii0921 commited on
Commit
0577725
·
verified ·
1 Parent(s): b3edb58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -218,7 +218,7 @@ def search(state,query: str):
218
  # Gradio Blocks Interface
219
  with gr.Blocks(css="footer {visibility: hidden;} .custom-image {width: 64px; height: 64px;} .custom-btn {width: 150px; height: 30px; background-color: lightblue; border-radius: 10px; font-size: 12px; color: #3C82F6;} #header {display: flex; justify-content: space-between; align-items: center; font-size: 24px; font-weight: bold;} #logo {width: 50px; height: 50px;}",title="Knowledge Utility",theme=gr.themes.Glass()) as ku:
220
  state = gr.State({
221
- "picture": ""
222
  })
223
 
224
  gr.LoginButton()
@@ -234,7 +234,7 @@ with gr.Blocks(css="footer {visibility: hidden;} .custom-image {width: 64px; hei
234
 
235
 
236
  with gr.Sidebar(open=False):
237
- gr.Image(value=state["picture"], elem_classes=["custom-image"])
238
  gr.HTML("""
239
  <!DOCTYPE html>
240
  <html lang="ja">
 
218
  # Gradio Blocks Interface
219
  with gr.Blocks(css="footer {visibility: hidden;} .custom-image {width: 64px; height: 64px;} .custom-btn {width: 150px; height: 30px; background-color: lightblue; border-radius: 10px; font-size: 12px; color: #3C82F6;} #header {display: flex; justify-content: space-between; align-items: center; font-size: 24px; font-weight: bold;} #logo {width: 50px; height: 50px;}",title="Knowledge Utility",theme=gr.themes.Glass()) as ku:
220
  state = gr.State({
221
+ "picture": "https://www.ryhintl.com/images/ryhlogo/ryhlogo.png"
222
  })
223
 
224
  gr.LoginButton()
 
234
 
235
 
236
  with gr.Sidebar(open=False):
237
+ gr.Image(value=state.value["picture"], elem_classes=["custom-image"])
238
  gr.HTML("""
239
  <!DOCTYPE html>
240
  <html lang="ja">