TA commited on
Commit
a62b9ca
·
1 Parent(s): bad446d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -1,6 +1,3 @@
1
- SYSTEM_PROMPT = "As an LLM, your job is to generate detailed prompts that start with generate the image, for image generation models based on user input. Be descriptive and specific, but also make sure your prompts are clear and concise."
2
- TITLE = "Image Prompter"
3
- EXAMPLE_INPUT = "A Reflective cat between stars."
4
  import gradio as gr
5
  import os
6
  import requests
@@ -79,9 +76,6 @@ Expand your imagination and broaden your horizons with LLM. Welcome to **{TITLE}
79
  "{EXAMPLE_INPUT}"
80
  """
81
 
82
- chatbot_preview = gr.Chatbot(layout="panel", value=[(None, welcome_preview_message)])
83
- textbox_preview = gr.Textbox(scale=7, container=False, value=EXAMPLE_INPUT)
84
 
85
- demo = gr.Interface(fn=test_preview_chatbot, inputs=chatbot_preview, outputs=textbox_preview, title=TITLE, description=SYSTEM_PROMPT, examples=[EXAMPLE_INPUT], allow_flagging=False, analytics_enabled=False, theme="huggingface")
86
-
87
- demo.launch(share=True)
 
 
 
 
1
  import gradio as gr
2
  import os
3
  import requests
 
76
  "{EXAMPLE_INPUT}"
77
  """
78
 
79
+ iface = gr.Interface(fn=test_preview_chatbot, inputs="text", outputs="text", title=TITLE, description=SYSTEM_PROMPT, examples=[EXAMPLE_INPUT], allow_flagging=False, analytics_enabled=False, theme="huggingface")
 
80
 
81
+ iface.launch(share=True)