mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 09:19:23 +01:00
Update the example extension
This commit is contained in:
parent
4b37a2b397
commit
ca4188aabc
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user