Show profile pictures in the Character tab

This commit is contained in:
oobabooga 2023-04-04 22:28:49 -03:00
parent f70a2e3ad4
commit 65d8a24a6d
6 changed files with 66 additions and 41 deletions

View file

@ -2,9 +2,8 @@ from pathlib import Path
import gradio as gr
from modules.chat import load_character
from modules.html_generator import get_image_cache
from modules.shared import gradio, settings
from modules.shared import gradio
def generate_css():
@ -64,7 +63,7 @@ def generate_html():
for file in sorted(Path("characters").glob("*")):
if file.suffix in [".json", ".yml", ".yaml"]:
character = file.stem
container_html = f'<div class="character-container">'
container_html = '<div class="character-container">'
image_html = "<div class='placeholder'></div>"
for i in [