DawnC commited on
Commit
c258d98
·
1 Parent(s): bd8684f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -440,10 +440,22 @@ def format_description_html(description, breed):
440
  return html
441
 
442
 
 
 
 
 
 
 
 
 
 
 
443
  def go_back(state):
444
- #buttons = state.get("buttons", [])
 
 
445
  return (
446
- state["html_output"],
447
  state["image"],
448
  gr.update(visible=True, choices=buttons),
449
  gr.update(visible=False),
 
440
  return html
441
 
442
 
443
+ # def go_back(state):
444
+ # buttons = state.get("buttons", [])
445
+ # return (
446
+ # state["html_output"],
447
+ # state["image"],
448
+ # gr.update(visible=True, choices=buttons),
449
+ # gr.update(visible=False),
450
+ # state
451
+ # )
452
+
453
  def go_back(state):
454
+ buttons = state.get("buttons", [])
455
+ # 使用原始的 HTML 輸出,不添加任何額外信息
456
+ html_output = state["html_output"]
457
  return (
458
+ html_output,
459
  state["image"],
460
  gr.update(visible=True, choices=buttons),
461
  gr.update(visible=False),