Volko commited on
Commit
5d7fd94
β€’
1 Parent(s): 84c350e

Added details

Browse files
Files changed (1) hide show
  1. app.py +34 -4
app.py CHANGED
@@ -77,6 +77,16 @@ chat = ChatWrapper()
77
  block = gr.Blocks(css=".gradio-container {background-color: #f8f8f8; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif}")
78
 
79
  with block:
 
 
 
 
 
 
 
 
 
 
80
  gr.HTML("<h1 style='text-align: center;'>ArxivGPT</h1>")
81
  gr.HTML("<h3 style='text-align: center;'>Ask questions about research papers</h3>")
82
 
@@ -121,10 +131,30 @@ with block:
121
  ],
122
  inputs=message,
123
  )
124
-
125
- gr.HTML(
126
- "<center style='margin-top: 20px;'>Powered by <a href='https://github.com/hwchase17/langchain'>LangChain πŸ¦œοΈπŸ”—</a></center>"
127
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
  state = gr.State()
130
 
 
77
  block = gr.Blocks(css=".gradio-container {background-color: #f8f8f8; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif}")
78
 
79
  with block:
80
+ gr.HTML("""
81
+ <style>
82
+ body {
83
+ background-color: #f5f5f5;
84
+ font-family: 'Roboto', sans-serif;
85
+ padding: 30px;
86
+ }
87
+ </style>
88
+ """)
89
+
90
  gr.HTML("<h1 style='text-align: center;'>ArxivGPT</h1>")
91
  gr.HTML("<h3 style='text-align: center;'>Ask questions about research papers</h3>")
92
 
 
131
  ],
132
  inputs=message,
133
  )
134
+ gr.HTML("""
135
+ <div style="text-align:center">
136
+ <p>Developed by <a href='https://www.linkedin.com/in/dekay/'>Github and Huggingface: Volkopat</a></p>
137
+ <p>Powered by <a href='https://openai.com/'>OpenAI</a>, <a href='https://arxiv.org/'>arXiv</a> and <a href='https://github.com/hwchase17/langchain'>LangChain πŸ¦œοΈπŸ”—</a></p>
138
+ <p>ArxivGPT is a chatbot that answers questions about research papers. It uses a pretrained GPT-3.5 model to generate answers.</p>
139
+ <p>Currently, it can answer questions about the paper you just linked and can also answer questions about the paper's contents.</p>
140
+ <p>It's still in development, so please report any bugs you find. It can take up to a minute to start a conversation for every new paper as there is a parsing delay.</p>
141
+ <p>The answers can be quite limited as there is a 4097 token limit for GPT-3.5, hence waiting for GPT-4 access to upgrade.</p>
142
+ <p>Possible upgrades coming up: GPT-4, faster parsing, status messages, other research paper hubs.</p>
143
+ </div>
144
+ <style>
145
+ p {
146
+ margin-bottom: 10px;
147
+ font-size: 16px;
148
+ }
149
+ a {
150
+ color: #3867d6;
151
+ text-decoration: none;
152
+ }
153
+ a:hover {
154
+ text-decoration: underline;
155
+ }
156
+ </style>
157
+ """)
158
 
159
  state = gr.State()
160