mckplus commited on
Commit
b8477e3
1 Parent(s): d2bff7d

Update DocuChat.py

Browse files
Files changed (1) hide show
  1. DocuChat.py +10 -6
DocuChat.py CHANGED
@@ -14,8 +14,12 @@ pn.config.raw_css.append(lato_font_link)
14
 
15
  # Custom CSS to use Lato font
16
  pn.config.raw_css.append("""
17
- body {
18
- font-family: 'Lato', sans-serif;
 
 
 
 
19
  }
20
  """)
21
 
@@ -71,17 +75,17 @@ class LangchainConversation:
71
 
72
  return result['result']
73
 
74
- def view(self):
75
  layout = pn.Column(
76
- pn.pane.Markdown("""
77
  # DocuChat
78
  AI-Powered Query Engine for Document Insights (powered by LangChain & OpenAI)
79
  ## How it works:
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()
 
14
 
15
  # Custom CSS to use Lato font
16
  pn.config.raw_css.append("""
17
+ .bk, .bk-root, .bk-widget {
18
+ font-family: 'Lato', sans-serif !important;
19
+ }
20
+ .mckenzie-link a {
21
+ font-weight: bold;
22
+ color: #1b9aaa;
23
  }
24
  """)
25
 
 
75
 
76
  return result['result']
77
 
78
+ def view(self):
79
  layout = pn.Column(
80
+ pn.pane.Markdown("""
81
  # DocuChat
82
  AI-Powered Query Engine for Document Insights (powered by LangChain & OpenAI)
83
  ## How it works:
84
  1) Upload a PDF
85
  2) Enter your OpenAI API key (get one via [OpenAI](https://platform.openai.com/account))
86
  3) Type a question and your document will get analyzed for an answer
87
+
88
+ Built by <span class="mckenzie-link">[McKenzie](https://www.mckenzielloydsmith.com/home?utm_source=HuggingFace&utm_medium=PDF+Analyzer)</span>.
89
  """),
90
  pn.Row(self.file_input, self.openaikey), self.chatbox
91
  ).servable()