NanditaVora commited on
Commit
e908b21
·
verified ·
1 Parent(s): f88fbd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -12,7 +12,7 @@ import os
12
 
13
  API_KEY = os.environ.get("API_KEY")
14
 
15
- API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3.2-3B"
16
  headers = {"Authorization": "Bearer " + API_KEY}
17
 
18
  def query(payload):
@@ -20,7 +20,10 @@ def query(payload):
20
  return response.json()
21
 
22
  output = query({
23
- "inputs": "Can you please let us know more details about your ",
 
 
 
24
  })
25
 
26
  st.write(output)
 
12
 
13
  API_KEY = os.environ.get("API_KEY")
14
 
15
+ API_URL = "API_URL = "https://api-inference.huggingface.co/models/google-bert/bert-large-uncased-whole-word-masking-finetuned-squad"
16
  headers = {"Authorization": "Bearer " + API_KEY}
17
 
18
  def query(payload):
 
20
  return response.json()
21
 
22
  output = query({
23
+ "inputs": {
24
+ "question": "What is my name?",
25
+ "context": "My name is Clara and I live in Berkeley."
26
+ }
27
  })
28
 
29
  st.write(output)