TA commited on
Commit
daa4a5a
·
1 Parent(s): 00b019c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
2
  import os
3
  import requests
4
 
5
-
6
  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."
7
  TITLE = "Image Prompter"
8
  EXAMPLE_INPUT = "A Reflective cat between stars."
@@ -81,6 +80,6 @@ Expand your imagination and broaden your horizons with LLM. Welcome to **{TITLE}
81
  "{EXAMPLE_INPUT}"
82
  """
83
 
84
- 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")
85
 
86
  iface.launch(share=True)
 
2
  import os
3
  import requests
4
 
 
5
  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."
6
  TITLE = "Image Prompter"
7
  EXAMPLE_INPUT = "A Reflective cat between stars."
 
80
  "{EXAMPLE_INPUT}"
81
  """
82
 
83
+ iface = gr.Interface(fn=test_preview_chatbot, inputs=gr.Chatbox(placeholder=EXAMPLE_INPUT), outputs=gr.Chatbox(), title=TITLE, description=SYSTEM_PROMPT, examples=[EXAMPLE_INPUT], allow_flagging=False, analytics_enabled=False, theme="huggingface")
84
 
85
  iface.launch(share=True)