Spaces:
Runtime error
Runtime error
Commit
·
c424053
1
Parent(s):
50845fb
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
import time
|
2 |
import streamlit as st
|
3 |
import requests
|
4 |
-
|
5 |
API_URL = "https://api-inference.huggingface.co/models/distilbert-base-cased-distilled-squad"
|
6 |
headers = {"Authorization": "Bearer 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"}
|
7 |
|
8 |
-
|
|
|
9 |
|
10 |
text_input = st.text_area("Enter some context👇")
|
11 |
text_question = st.text_input("Enter a question regarding that context👇")
|
|
|
1 |
import time
|
2 |
import streamlit as st
|
3 |
import requests
|
4 |
+
BERT-LARGE = "https://api-inference.huggingface.co/models/deepset/bert-large-uncased-whole-word-masking-squad2"
|
5 |
API_URL = "https://api-inference.huggingface.co/models/distilbert-base-cased-distilled-squad"
|
6 |
headers = {"Authorization": "Bearer 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"}
|
7 |
|
8 |
+
|
9 |
+
st.title("question-answering-demo")
|
10 |
|
11 |
text_input = st.text_area("Enter some context👇")
|
12 |
text_question = st.text_input("Enter a question regarding that context👇")
|