Spaces:
Sleeping
Sleeping
Update DocuChat.py
Browse files- DocuChat.py +4 -14
DocuChat.py
CHANGED
@@ -72,15 +72,6 @@ class LangchainConversation:
|
|
72 |
return result['result']
|
73 |
|
74 |
def view(self):
|
75 |
-
# Custom CSS to style the McKenzie link
|
76 |
-
pn.config.raw_css.append("""
|
77 |
-
.mckenzie-link a {
|
78 |
-
font-weight: bold;
|
79 |
-
color: #1b9aaa;
|
80 |
-
}
|
81 |
-
""")
|
82 |
-
|
83 |
-
# Modify the Markdown to include the specific class for the McKenzie link
|
84 |
layout = pn.Column(
|
85 |
pn.pane.Markdown("""
|
86 |
# DocuChat
|
@@ -89,13 +80,12 @@ class LangchainConversation:
|
|
89 |
1) Upload a PDF
|
90 |
2) Enter your OpenAI API key (get one via [OpenAI](https://platform.openai.com/account))
|
91 |
3) Type a question and your document will get analyzed for an answer
|
92 |
-
|
93 |
-
Built by
|
94 |
"""),
|
95 |
pn.Row(self.file_input, self.openaikey), self.chatbox
|
96 |
-
).servable()
|
97 |
-
).servable()
|
98 |
return layout
|
99 |
|
100 |
langchain_conversation = LangchainConversation()
|
101 |
-
langchain_conversation.view()
|
|
|
72 |
return result['result']
|
73 |
|
74 |
def view(self):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
layout = pn.Column(
|
76 |
pn.pane.Markdown("""
|
77 |
# DocuChat
|
|
|
80 |
1) Upload a PDF
|
81 |
2) Enter your OpenAI API key (get one via [OpenAI](https://platform.openai.com/account))
|
82 |
3) Type a question and your document will get analyzed for an answer
|
83 |
+
|
84 |
+
Built by [McKenzie](https://www.mckenzielloydsmith.com/home?utm_source=HuggingFace&utm_medium=PDF+Analyzer).
|
85 |
"""),
|
86 |
pn.Row(self.file_input, self.openaikey), self.chatbox
|
87 |
+
).servable()
|
|
|
88 |
return layout
|
89 |
|
90 |
langchain_conversation = LangchainConversation()
|
91 |
+
langchain_conversation.view()
|