mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +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.
|
generation time.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import gradio as gr
|
||||||
import torch
|
import torch
|
||||||
from modules import chat
|
from transformers import LogitsProcessor
|
||||||
|
|
||||||
|
from modules import chat, shared
|
||||||
from modules.text_generation import (
|
from modules.text_generation import (
|
||||||
decode,
|
decode,
|
||||||
encode,
|
encode,
|
||||||
generate_reply,
|
generate_reply,
|
||||||
)
|
)
|
||||||
from transformers import LogitsProcessor
|
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
"display_name": "Example Extension",
|
"display_name": "Example Extension",
|
||||||
|
@ -7,14 +7,16 @@ functions are declared in the same order that they are called at
|
|||||||
generation time.
|
generation time.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import gradio as gr
|
||||||
import torch
|
import torch
|
||||||
from modules import chat
|
from transformers import LogitsProcessor
|
||||||
|
|
||||||
|
from modules import chat, shared
|
||||||
from modules.text_generation import (
|
from modules.text_generation import (
|
||||||
decode,
|
decode,
|
||||||
encode,
|
encode,
|
||||||
generate_reply,
|
generate_reply,
|
||||||
)
|
)
|
||||||
from transformers import LogitsProcessor
|
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
"display_name": "Example Extension",
|
"display_name": "Example Extension",
|
||||||
|
Loading…
Reference in New Issue
Block a user