Update the example extension

This commit is contained in:
oobabooga 2023-07-29 18:57:22 -07:00
parent 4b37a2b397
commit ca4188aabc
2 changed files with 8 additions and 4 deletions

View File

@ -111,14 +111,16 @@ functions are declared in the same order that they are called at
generation time.
"""
import gradio as gr
import torch
from modules import chat
from transformers import LogitsProcessor
from modules import chat, shared
from modules.text_generation import (
decode,
encode,
generate_reply,
)
from transformers import LogitsProcessor
params = {
"display_name": "Example Extension",

View File

@ -7,14 +7,16 @@ functions are declared in the same order that they are called at
generation time.
"""
import gradio as gr
import torch
from modules import chat
from transformers import LogitsProcessor
from modules import chat, shared
from modules.text_generation import (
decode,
encode,
generate_reply,
)
from transformers import LogitsProcessor
params = {
"display_name": "Example Extension",