Skip to content

Commit d5efc06

Browse files
authored
Merge branch 'oobabooga:main' into stt-extension
2 parents 00359ba + 3341447 commit d5efc06

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ For these two, please try commenting on an existing issue instead of creating a
187187

188188
## Credits
189189

190+
- Gradio dropdown menu refresh button: https://github.com/AUTOMATIC1111/stable-diffusion-webui
191+
- Verbose preset: Anonymous 4chan user.
190192
- NovelAI and KoboldAI presets: https://github.com/KoboldAI/KoboldAI-Client/wiki/Settings-Presets
191193
- Pygmalion preset, code for early stopping in chat mode, code for some of the sliders, --chat mode colors: https://github.com/PygmalionAI/gradio-ui/
192-
- Verbose preset: Anonymous 4chan user.
193-
- Instruct-Joi preset: https://huggingface.co/Rallio67/joi_12B_instruct_alpha
194-
- Gradio dropdown menu refresh button: https://github.com/AUTOMATIC1111/stable-diffusion-webui

presets/Contrastive Search.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
do_sample=False
2+
penalty_alpha=0.6
3+
top_k=4

presets/Instruct Joi (Contrastive Search).txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

server.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,12 @@ def create_settings_menus(default_preset):
197197
gen_events = []
198198
default_preset = shared.settings['presets'][next((k for k in shared.settings['presets'] if re.match(k.lower(), shared.model_name.lower())), 'default')]
199199
default_text = shared.settings['prompts'][next((k for k in shared.settings['prompts'] if re.match(k.lower(), shared.model_name.lower())), 'default')]
200+
title ='Text generation web UI'
200201
description = '\n\n# Text generation lab\nGenerate text using Large Language Models.\n'
201202
suffix = '_pygmalion' if 'pygmalion' in shared.model_name.lower() else ''
202203

203204
if shared.args.chat or shared.args.cai_chat:
204-
with gr.Blocks(css=ui.css+ui.chat_css, analytics_enabled=False) as shared.gradio['interface']:
205+
with gr.Blocks(css=ui.css+ui.chat_css, analytics_enabled=False, title=title) as shared.gradio['interface']:
205206
if shared.args.cai_chat:
206207
shared.gradio['display'] = gr.HTML(value=generate_chat_html(shared.history['visible'], shared.settings[f'name1{suffix}'], shared.settings[f'name2{suffix}'], shared.character))
207208
else:
@@ -313,7 +314,7 @@ def create_settings_menus(default_preset):
313314
shared.gradio['interface'].load(reload_func, reload_inputs, [shared.gradio['display']], show_progress=True)
314315

315316
elif shared.args.notebook:
316-
with gr.Blocks(css=ui.css, analytics_enabled=False) as shared.gradio['interface']:
317+
with gr.Blocks(css=ui.css, analytics_enabled=False, title=title) as shared.gradio['interface']:
317318
gr.Markdown(description)
318319
with gr.Tab('Raw'):
319320
shared.gradio['textbox'] = gr.Textbox(value=default_text, lines=23)
@@ -337,7 +338,7 @@ def create_settings_menus(default_preset):
337338
shared.gradio['Stop'].click(None, None, None, cancels=gen_events)
338339

339340
else:
340-
with gr.Blocks(css=ui.css, analytics_enabled=False) as shared.gradio['interface']:
341+
with gr.Blocks(css=ui.css, analytics_enabled=False, title=title) as shared.gradio['interface']:
341342
gr.Markdown(description)
342343
with gr.Row():
343344
with gr.Column():

0 commit comments

Comments
 (0)