Spaces:
Build error
Build error
Update app.py
Browse files41 unmodified lines42434445464745464724 unmodified lines727374787576777818 unmodified lines97989910310410510610710810911011111211311411511611711811912012112212312412512610010110241 unmodified lines history: list, temperature: float = 0.3, max_new_tokens: int = 1024, top_p: float = 1.0, top_k: int = 20, penalty: float = 1.2,): print(f'message: {message}') print(f'history: {history}')24 unmodified lines chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
with gr.Blocks(theme="citrus") as demo:with gr.Blocks(theme="ocean") as demo: gr.HTML(TITLE) gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button") gr.ChatInterface(18 unmodified lines label="Max new tokens", render=False, ), gr.Slider( minimum=0.0, maximum=1.0, step=0.1, value=1.0, label="top_p", render=False, ), gr.Slider( minimum=1, maximum=20, step=1, value=20, label="top_k", render=False, ), gr.Slider( minimum=0.0, maximum=2.0, step=0.1, value=1.2, label="Repetition penalty", render=False, ), ], examples=[ ["Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."],app.py+1-28