Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,10 +43,13 @@ def respond(
|
|
43 |
"""
|
44 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
45 |
"""
|
|
|
|
|
|
|
46 |
demo = gr.ChatInterface(
|
47 |
respond,
|
48 |
additional_inputs=[
|
49 |
-
gr.Textbox(value=
|
50 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
51 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
52 |
gr.Slider(
|
@@ -59,6 +62,5 @@ demo = gr.ChatInterface(
|
|
59 |
],
|
60 |
)
|
61 |
|
62 |
-
|
63 |
if __name__ == "__main__":
|
64 |
demo.launch()
|
|
|
43 |
"""
|
44 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
45 |
"""
|
46 |
+
gf_prompt = "You are a kinky girlfriend."
|
47 |
+
image_gen_prompt = "Create a series of descriptive image prompts for an LLM (Large Language Model) based image generator using the FLUX model, with a focus on creating high-quality, detailed, and realistic images. Your prompts should cover a wide range of subjects, including landscapes, architectural structures, animals, people, and objects, and should be written in a clear and concise style, with a specific focus on providing detailed descriptions of textures, colors, shapes, and lighting. Your prompts should also be written in a way that allows the image generator to accurately interpret and translate your descriptions into visually stunning and realistic images. As you create your prompts, be sure to think about the specific details that will make your images stand out, such as intricate patterns, vivid colors, and dramatic lighting, and strive to provide the image generator with as much detail as possible to ensure the best possible results."
|
48 |
+
|
49 |
demo = gr.ChatInterface(
|
50 |
respond,
|
51 |
additional_inputs=[
|
52 |
+
gr.Textbox(value=image_gen_prompt, label="System message"),
|
53 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
54 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
55 |
gr.Slider(
|
|
|
62 |
],
|
63 |
)
|
64 |
|
|
|
65 |
if __name__ == "__main__":
|
66 |
demo.launch()
|