taesiri commited on
Commit
41088df
β€’
1 Parent(s): c5cc645

upgraded to claude-2.1

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -64,7 +64,7 @@ def get_paper_from_huggingface(paper_id):
64
 
65
 
66
  class ContextualQA:
67
- def __init__(self, client, model="claude-2.0"):
68
  self.client = client
69
  self.model = model
70
  self.context = ""
@@ -177,7 +177,7 @@ def load_context(paper_id):
177
 
178
  # Initialize the Anthropic client and QA model
179
  client = Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"])
180
- qa_model = ContextualQA(client, model="claude-2.0")
181
  context = f"{LEADING_PROMPT}\n{latex_source}"
182
  qa_model.load_text(context)
183
 
@@ -226,14 +226,14 @@ with gr.Blocks(
226
  gr.HTML(
227
  """
228
  <h1 style='text-align: center; font-size: 24px;'>
229
- Explore ArXiv Papers in Depth with <code>claude-2.0</code> - Ask Questions and Get Answers Instantly
230
  </h1>
231
  """
232
  )
233
  # gr.HTML(
234
  # """
235
  # <p style='text-align: justify; font-size: 18px; margin: 10px;'>
236
- # Explore the depths of ArXiv papers with our interactive app, powered by the advanced <code>claude-2.0</code> model. Ask detailed questions and get immediate, context-rich answers from academic papers.
237
  # </p>
238
  # """
239
  # )
@@ -278,7 +278,7 @@ with gr.Blocks(
278
  gr.Markdown(
279
  "## Acknowledgements\n"
280
  "This project is made possible through the generous support of "
281
- "[Anthropic](https://www.anthropic.com/), who provided free access to the `claude-2.0` API."
282
  )
283
 
284
  btn_load.click(load_context, inputs=[paper_id_input], outputs=[qa_model, chatbot])
 
64
 
65
 
66
  class ContextualQA:
67
+ def __init__(self, client, model="claude-2.1"):
68
  self.client = client
69
  self.model = model
70
  self.context = ""
 
177
 
178
  # Initialize the Anthropic client and QA model
179
  client = Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"])
180
+ qa_model = ContextualQA(client, model="claude-2.1")
181
  context = f"{LEADING_PROMPT}\n{latex_source}"
182
  qa_model.load_text(context)
183
 
 
226
  gr.HTML(
227
  """
228
  <h1 style='text-align: center; font-size: 24px;'>
229
+ Explore ArXiv Papers in Depth with πŸ”₯ <code>claude-2.1</code> πŸ”₯- Ask Questions and Get Answers Instantly
230
  </h1>
231
  """
232
  )
233
  # gr.HTML(
234
  # """
235
  # <p style='text-align: justify; font-size: 18px; margin: 10px;'>
236
+ # Explore the depths of ArXiv papers with our interactive app, powered by the advanced <code>claude-2.1</code> model. Ask detailed questions and get immediate, context-rich answers from academic papers.
237
  # </p>
238
  # """
239
  # )
 
278
  gr.Markdown(
279
  "## Acknowledgements\n"
280
  "This project is made possible through the generous support of "
281
+ "[Anthropic](https://www.anthropic.com/), who provided free access to the `claude-2.1` API."
282
  )
283
 
284
  btn_load.click(load_context, inputs=[paper_id_input], outputs=[qa_model, chatbot])