Spaces:
Sleeping
Sleeping
Sandra-Cai
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def pdf_changes(pdf_doc):
|
|
| 37 |
|
| 38 |
{context}
|
| 39 |
|
| 40 |
-
Question: {question}
|
| 41 |
Answer:"""
|
| 42 |
PROMPT = PromptTemplate(
|
| 43 |
template=prompt_template, input_variables=["context", "question"]
|
|
@@ -101,4 +101,4 @@ with gr.Blocks(css=css) as demo:
|
|
| 101 |
bot, chatbot, chatbot
|
| 102 |
)
|
| 103 |
|
| 104 |
-
demo.launch()
|
|
|
|
| 37 |
|
| 38 |
{context}
|
| 39 |
|
| 40 |
+
Question: {sample.question}
|
| 41 |
Answer:"""
|
| 42 |
PROMPT = PromptTemplate(
|
| 43 |
template=prompt_template, input_variables=["context", "question"]
|
|
|
|
| 101 |
bot, chatbot, chatbot
|
| 102 |
)
|
| 103 |
|
| 104 |
+
demo.launch()
|