mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-29 13:24:59 +01:00
Lint
This commit is contained in:
parent
f843cb475b
commit
1ef748fb20
@ -5,7 +5,6 @@ import gradio as gr
|
|||||||
from modules.html_generator import get_image_cache
|
from modules.html_generator import get_image_cache
|
||||||
from modules.shared import gradio
|
from modules.shared import gradio
|
||||||
|
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
'items_per_page': 50,
|
'items_per_page': 50,
|
||||||
'open': False,
|
'open': False,
|
||||||
|
@ -307,6 +307,7 @@ refresh_svg = '''<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
|
|||||||
copy_button = f'<button class="footer-button footer-copy-button" onclick="copyToClipboard(this)">{copy_svg}</button>'
|
copy_button = f'<button class="footer-button footer-copy-button" onclick="copyToClipboard(this)">{copy_svg}</button>'
|
||||||
refresh_button = f'<button class="footer-button footer-refresh-button" onclick="regenerateClick()">{refresh_svg}</button>'
|
refresh_button = f'<button class="footer-button footer-refresh-button" onclick="regenerateClick()">{refresh_svg}</button>'
|
||||||
|
|
||||||
|
|
||||||
def generate_instruct_html(history):
|
def generate_instruct_html(history):
|
||||||
output = f'<style>{instruct_css}</style><div class="chat" id="chat"><div class="messages">'
|
output = f'<style>{instruct_css}</style><div class="chat" id="chat"><div class="messages">'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user