Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,8 @@ recommender = SemanticSearch()
|
|
162 |
title = 'PDF GPT'
|
163 |
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."""
|
164 |
|
165 |
-
with gr.Interface(fn=question_answer, inputs=[url, file, question openAI_key], outputs=[answer], title=title, description=description) as iface:
|
|
|
166 |
iface.launch()
|
167 |
|
168 |
|
|
|
162 |
title = 'PDF GPT'
|
163 |
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."""
|
164 |
|
165 |
+
with gr.Interface(fn=question_answer, inputs=[url, file, question, openAI_key], outputs=[answer], title=title, description=description) as iface:
|
166 |
+
|
167 |
iface.launch()
|
168 |
|
169 |
|