Spaces:
Sleeping
Sleeping
Update DocuChat.py
Browse files- DocuChat.py +3 -3
DocuChat.py
CHANGED
@@ -74,6 +74,7 @@ class LangchainConversation:
|
|
74 |
|
75 |
return result['result']
|
76 |
|
|
|
77 |
def view(self):
|
78 |
custom_link_style = {
|
79 |
'color': '#1b9aaa',
|
@@ -90,7 +91,7 @@ class LangchainConversation:
|
|
90 |
3) Type a question and your document will get analyzed for an answer
|
91 |
|
92 |
Built by [McKenzie](https://www.mckenzielloydsmith.com/home?utm_source=HuggingFace&utm_medium=PDF+Analyzer).
|
93 |
-
""",
|
94 |
pn.Row(self.file_input, self.openaikey), self.chatbox
|
95 |
)
|
96 |
|
@@ -100,6 +101,5 @@ class LangchainConversation:
|
|
100 |
# Serve the template
|
101 |
return template.servable()
|
102 |
|
103 |
-
|
104 |
langchain_conversation = LangchainConversation()
|
105 |
-
langchain_conversation.view()
|
|
|
74 |
|
75 |
return result['result']
|
76 |
|
77 |
+
|
78 |
def view(self):
|
79 |
custom_link_style = {
|
80 |
'color': '#1b9aaa',
|
|
|
91 |
3) Type a question and your document will get analyzed for an answer
|
92 |
|
93 |
Built by [McKenzie](https://www.mckenzielloydsmith.com/home?utm_source=HuggingFace&utm_medium=PDF+Analyzer).
|
94 |
+
"""), # Closing parenthesis for pn.pane.Markdown
|
95 |
pn.Row(self.file_input, self.openaikey), self.chatbox
|
96 |
)
|
97 |
|
|
|
101 |
# Serve the template
|
102 |
return template.servable()
|
103 |
|
|
|
104 |
langchain_conversation = LangchainConversation()
|
105 |
+
langchain_conversation.view()
|