TA commited on
Commit
c5ce7e0
·
1 Parent(s): 41aaaef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -9,6 +9,9 @@ html_temp = """
9
  <div style="position: absolute; top: 0; right: 0;">
10
  <img src='https://huggingface.co/spaces/NerdN/open-gpt-Image-Prompter/blob/main/_45a03b4d-ea0f-4b81-873d-ff6b10461d52.jpg' alt='Your Image' style='width:100px;height:100px;'>
11
  </div>
 
 
 
12
  """
13
 
14
  zephyr_7b_beta = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta/"
@@ -78,7 +81,7 @@ Expand your imagination and broaden your horizons with LLM. Welcome to **{TITLE}
78
  chatbot_preview = gr.Chatbot(layout="panel", value=[(None, welcome_preview_message)])
79
  textbox_preview = gr.Textbox(scale=7, container=False, value=EXAMPLE_INPUT)
80
 
81
- demo = gr.ChatInterface(test_preview_chatbot, chatbot=chatbot_preview, textbox=textbox_preview)
82
 
83
 
84
  demo.launch(share=True)
 
9
  <div style="position: absolute; top: 0; right: 0;">
10
  <img src='https://huggingface.co/spaces/NerdN/open-gpt-Image-Prompter/blob/main/_45a03b4d-ea0f-4b81-873d-ff6b10461d52.jpg' alt='Your Image' style='width:100px;height:100px;'>
11
  </div>
12
+ <div style="position: absolute; bottom: 0; left: 0;">
13
+ <p>Please like the space!</p>
14
+ </div>
15
  """
16
 
17
  zephyr_7b_beta = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta/"
 
81
  chatbot_preview = gr.Chatbot(layout="panel", value=[(None, welcome_preview_message)])
82
  textbox_preview = gr.Textbox(scale=7, container=False, value=EXAMPLE_INPUT)
83
 
84
+ demo = gr.ChatInterface(test_preview_chatbot, chatbot=chatbot_preview, textbox=textbox_preview, html=html_temp)
85
 
86
 
87
  demo.launch(share=True)