Halo commited on
Commit
25dcb9c
1 Parent(s): 07f5362

Update app

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -178,7 +178,7 @@ def question_answer(url, file, question, openAI_key, model_name):
178
  recommender = SemanticSearch()
179
 
180
  title = 'PDF GPT'
181
- description = """ PDF GPT allows you to chat with your PDF file using Universal Sentence Encoder and Open AI. It gives hallucination free response than other tools as the embeddings are better than OpenAI. The returned response can even cite the page number in square brackets([]) where the information is located, adding credibility to the responses and helping to locate pertinent information quickly."""
182
 
183
 
184
  with gr.Blocks() as demo:
@@ -189,11 +189,11 @@ with gr.Blocks() as demo:
189
  with gr.Row():
190
 
191
  with gr.Group():
192
- gr.Markdown(f'<p style="text-align:center">Get your Open AI API key <a href="https://platform.openai.com/account/api-keys">here</a></p>')
193
  openAI_key=gr.Textbox(label='Enter your OpenAI API key here')
194
  model_name=gr.Textbox(label='Enter your OpenAI Model')
195
  url = gr.Textbox(label='Enter PDF URL here')
196
- gr.Markdown("<center><h4>OR<h4></center>")
197
  file = gr.File(label='Upload your PDF/ Research Paper / Book here', file_types=['.pdf'])
198
  question = gr.Textbox(label='Enter your question here')
199
  btn = gr.Button(value='Submit')
 
178
  recommender = SemanticSearch()
179
 
180
  title = 'PDF GPT'
181
+ description = """NO OCR PDF EXTRACTER, PDF GPT allows you to chat with your PDF file using Universal Sentence Encoder and Open AI. It gives hallucination free response than other tools as the embeddings are better than OpenAI. The returned response can even cite the page number in square brackets([]) where the information is located, adding credibility to the responses and helping to locate pertinent information quickly."""
182
 
183
 
184
  with gr.Blocks() as demo:
 
189
  with gr.Row():
190
 
191
  with gr.Group():
192
+ gr.Markdown(f'<p style="text-align:center">Get your Open AI API key <a href="https://platform.openai.com/account/api-keys">here</a></p><br/>')
193
  openAI_key=gr.Textbox(label='Enter your OpenAI API key here')
194
  model_name=gr.Textbox(label='Enter your OpenAI Model')
195
  url = gr.Textbox(label='Enter PDF URL here')
196
+ gr.Markdown("<center><h4>OR<h4></center><br/>")
197
  file = gr.File(label='Upload your PDF/ Research Paper / Book here', file_types=['.pdf'])
198
  question = gr.Textbox(label='Enter your question here')
199
  btn = gr.Button(value='Submit')