deepozzzie commited on
Commit
b63876a
·
1 Parent(s): 9054137

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -73,8 +73,8 @@ css="""
73
  title = """
74
  <div style="text-align: center;max-width: 700px;">
75
  <h1>Chat with PDF • OpenAI</h1>
76
- <p style="text-align: center;">Upload a .PDF from your computer, click the "Load PDF to LangChain" button, <br />
77
- when everything is ready, you can start asking questions about the pdf ;) <br />
78
  This version is set to store chat history, and uses OpenAI as LLM, don't forget to copy/paste your OpenAI API key</p>
79
  </div>
80
  """
@@ -89,7 +89,7 @@ with gr.Blocks(css=css) as demo:
89
  pdf_doc = gr.File(label="Load a pdf", file_types=['.pdf'], type="file")
90
  with gr.Row():
91
  langchain_status = gr.Textbox(label="Status", placeholder="", interactive=False)
92
- load_pdf = gr.Button("Load pdf to langchain")
93
 
94
  chatbot = gr.Chatbot([], elem_id="chatbot").style(height=350)
95
  question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
 
73
  title = """
74
  <div style="text-align: center;max-width: 700px;">
75
  <h1>Chat with PDF • OpenAI</h1>
76
+ <p style="text-align: center;">Upload a .PDF from your computer, click the "Load PDF" button, <br />
77
+ when everything is ready, you can start asking questions about the pdf <br />
78
  This version is set to store chat history, and uses OpenAI as LLM, don't forget to copy/paste your OpenAI API key</p>
79
  </div>
80
  """
 
89
  pdf_doc = gr.File(label="Load a pdf", file_types=['.pdf'], type="file")
90
  with gr.Row():
91
  langchain_status = gr.Textbox(label="Status", placeholder="", interactive=False)
92
+ load_pdf = gr.Button("Load pdf")
93
 
94
  chatbot = gr.Chatbot([], elem_id="chatbot").style(height=350)
95
  question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")