ELEVEN-001 commited on
Commit
eef2fe1
·
1 Parent(s): 8cf0eef

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -171,7 +171,7 @@ recommender = SemanticSearch()
171
  title = 'PDF GPT'
172
  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."""
173
 
174
- with gr.Blocks() as demo:
175
 
176
  gr.Markdown(f'<center><h1>{title}</h1></center>')
177
  gr.Markdown(description)
@@ -193,5 +193,5 @@ with gr.Blocks() as demo:
193
 
194
  btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
195
  #openai.api_key = os.getenv('Your_Key_Here')
196
- demo.launch()
197
- #demo.launch(share=True)
 
171
  title = 'PDF GPT'
172
  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."""
173
 
174
+ with gr.Blocks() as iface:
175
 
176
  gr.Markdown(f'<center><h1>{title}</h1></center>')
177
  gr.Markdown(description)
 
193
 
194
  btn.click(question_answer, inputs=[url, file, question,openAI_key], outputs=[answer])
195
  #openai.api_key = os.getenv('Your_Key_Here')
196
+ iface.launch()
197
+ #iface.launch(share=True)