ysharma HF staff commited on
Commit
36b5fbb
1 Parent(s): 1335864

updated the header

Browse files
Files changed (1) hide show
  1. app.py +20 -2
app.py CHANGED
@@ -91,8 +91,26 @@ def chat(message, history, openai_api_key):
91
  #chatbot = gr.Chatbot().style(color_map=("green", "orange"))
92
 
93
  with gr.Blocks() as demo:
94
- gr.Markdown("""<h1><centre>LangChain - powered - Gradio-Helper-Bot </h1></centre>
95
- """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  with gr.Row():
97
  question = gr.Textbox(label = 'Type in your questions about Gradio here', placeholder = 'What is the role of "every" argument in a component')
98
  openai_api_key = gr.Textbox(type='password')
 
91
  #chatbot = gr.Chatbot().style(color_map=("green", "orange"))
92
 
93
  with gr.Blocks() as demo:
94
+ #gr.Markdown("""<h1><centre>LangChain - powered - Gradio-Helper-Bot </h1></centre> """)
95
+ gr.HTML("""<div style="text-align: center; max-width: 700px; margin: 0 auto;">
96
+ <div
97
+ style="
98
+ display: inline-flex;
99
+ align-items: center;
100
+ gap: 0.8rem;
101
+ font-size: 1.75rem;
102
+ "
103
+ >
104
+ <h1 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
105
+ Gradio QandA - LangChain Bot
106
+ </h1>
107
+ </div>
108
+ <p style="margin-bottom: 10px; font-size: 94%">
109
+ Hi, I'm a Q and A Gradio expert bot, start by typing in your OpenAI API key, questions/issues you are facing in your Gradio implementations and then press enter.<br>
110
+ <a href="https://huggingface.co/spaces/ysharma/InstructPix2Pix_Chatbot?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate Space with GPU Upgrade for fast Inference & no queue<br>
111
+ Built using <a href="https://langchain.readthedocs.io/en/latest/" target="_blank">LangChain</a> and <a href="https://github.com/gradio-app/gradio" target="_blank">Gradio Github repo</a>
112
+ </p>
113
+ </div>""")
114
  with gr.Row():
115
  question = gr.Textbox(label = 'Type in your questions about Gradio here', placeholder = 'What is the role of "every" argument in a component')
116
  openai_api_key = gr.Textbox(type='password')