Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Jul 30, 2023
2 parents c4e14a7 + ca4188a commit c25602e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions docs/Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions extensions/example/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
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",
Expand Down
4 changes: 2 additions & 2 deletions extensions/sd_api_pictures/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ def ui():
negative_prompt = gr.Textbox(placeholder=params['negative_prompt'], value=params['negative_prompt'], label='Negative Prompt')
with gr.Row():
with gr.Column():
width = gr.Slider(256, 768, value=params['width'], step=64, label='Width')
height = gr.Slider(256, 768, value=params['height'], step=64, label='Height')
width = gr.Slider(64, 2048, value=params['width'], step=64, label='Width')
height = gr.Slider(64, 2048, value=params['height'], step=64, label='Height')
with gr.Column(variant="compact", elem_id="sampler_col"):
with gr.Row(elem_id="sampler_row"):
sampler_name = gr.Dropdown(value=params['sampler_name'], label='Sampling method', elem_id="sampler_box")
Expand Down

0 comments on commit c25602e

Please sign in to comment.