Spaces:
Runtime error
Runtime error
Lucas
commited on
Commit
·
d5061c1
1
Parent(s):
0a6abdb
Translating app text, fixing small text issue.
Browse files
main.py
CHANGED
|
@@ -108,7 +108,7 @@ def qa_result(_):
|
|
| 108 |
pn.panel("\U0001F916", width=10),
|
| 109 |
pn.Column(
|
| 110 |
result["result"],
|
| 111 |
-
"
|
| 112 |
pn.pane.Markdown(
|
| 113 |
'\n--------------------------------------------------------------------\n'.join(
|
| 114 |
doc.page_content for doc in result["source_documents"]))
|
|
@@ -129,15 +129,15 @@ qa_interactive = pn.panel(
|
|
| 129 |
loading_indicator=True,
|
| 130 |
)
|
| 131 |
|
| 132 |
-
output = pn.WidgetBox('*
|
| 133 |
|
| 134 |
# layout
|
| 135 |
pn.Column(
|
| 136 |
pn.pane.Markdown("""
|
| 137 |
-
## \U0001F60A!
|
| 138 |
(original implementation: @sophiamyang)
|
| 139 |
|
| 140 |
-
1)
|
| 141 |
|
| 142 |
"""),
|
| 143 |
pn.Row(file_input, openaikey),
|
|
|
|
| 108 |
pn.panel("\U0001F916", width=10),
|
| 109 |
pn.Column(
|
| 110 |
result["result"],
|
| 111 |
+
"Fontes:",
|
| 112 |
pn.pane.Markdown(
|
| 113 |
'\n--------------------------------------------------------------------\n'.join(
|
| 114 |
doc.page_content for doc in result["source_documents"]))
|
|
|
|
| 129 |
loading_indicator=True,
|
| 130 |
)
|
| 131 |
|
| 132 |
+
output = pn.WidgetBox('*As respstas aparecerão aqui:*', qa_interactive, width=630, scroll=True)
|
| 133 |
|
| 134 |
# layout
|
| 135 |
pn.Column(
|
| 136 |
pn.pane.Markdown("""
|
| 137 |
+
## \U0001F60A! Perguntas e respostas com um PDF
|
| 138 |
(original implementation: @sophiamyang)
|
| 139 |
|
| 140 |
+
1) Suba o PDF. 2) Entre com a OpenAI API key. 3) Digite a pergunta e clique "Run".
|
| 141 |
|
| 142 |
"""),
|
| 143 |
pn.Row(file_input, openaikey),
|