瀏覽代碼

Remove unused imports

oobabooga 2 年之前
父節點
當前提交
48b83c9a70
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      extensions/gallery/script.py

+ 0 - 3
extensions/gallery/script.py

@@ -1,5 +1,3 @@
-import json
-import os
 from pathlib import Path
 
 import gradio as gr
@@ -46,7 +44,6 @@ def generate_html():
     # Iterate through files in image folder
     for file in Path("characters").glob("*"):
         if file.name.endswith(".json"):
-            json_name = file.name
             character = file.name.replace(".json", "")
             table_html += "<tr>"
             image_html = "<div class='placeholder'></div>"