ysharma HF staff commited on
Commit
f3287a1
1 Parent(s): 5d253e6

update description

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py CHANGED
@@ -141,6 +141,27 @@ def set_state():
141
 
142
  #Gradio code for Repo as input and search index as output file
143
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  with gr.Row() :
145
  with gr.Column():
146
  repo_link = gr.Textbox(label="Enter Github repo name")
 
141
 
142
  #Gradio code for Repo as input and search index as output file
143
  with gr.Blocks() as demo:
144
+ gr.HTML("""<div style="text-align: center; max-width: 700px; margin: 0 auto;">
145
+ <div
146
+ style="
147
+ display: inline-flex;
148
+ align-items: center;
149
+ gap: 0.8rem;
150
+ font-size: 1.75rem;
151
+ "
152
+ >
153
+ <h1 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
154
+ QandA Chatbot Creator for Github Repos - Automation done using LangChain, Gradio, and Spaces
155
+ </h1>
156
+ </div>
157
+ <p style="margin-bottom: 10px; font-size: 94%">
158
+ Hi, I'm a Q and A Chatbot create for your Github repo. Just copy paste your Github Repo link, type in your OpenAI API key, and press the button!
159
+ The app will generate the FAISS embedding vector space and will make it available for you to download. Next, enter your Huggingface Token and press the final button to create your own QandA Chatbot under your profile on HF.
160
+ Press the link displayed for your new space and enjoy your own prolific state-of-the-art QandA chatbot!<br>
161
+ <a href="https://huggingface.co/spaces/ysharma/InstructPix2Pix_Chatbot?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the space to avoid queues<br>
162
+ 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</a>
163
+ </p>
164
+ </div>""")
165
  with gr.Row() :
166
  with gr.Column():
167
  repo_link = gr.Textbox(label="Enter Github repo name")