Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -266,12 +266,15 @@ with gr.Blocks(css=css) as demo2:
|
|
266 |
inputs = [prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
267 |
outputs = [result]
|
268 |
)
|
|
|
|
|
269 |
|
270 |
"""
|
271 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
272 |
"""
|
273 |
aa = gr.ChatInterface(
|
274 |
respond,
|
|
|
275 |
additional_inputs=[
|
276 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
277 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
|
|
266 |
inputs = [prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
267 |
outputs = [result]
|
268 |
)
|
269 |
+
BOT_AVATAR="OpenAI_Logo.png"
|
270 |
+
People="user.png"
|
271 |
|
272 |
"""
|
273 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
274 |
"""
|
275 |
aa = gr.ChatInterface(
|
276 |
respond,
|
277 |
+
avatar_images=[People, BOT_AVATAR],
|
278 |
additional_inputs=[
|
279 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
280 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|