Spaces:
Sleeping
Sleeping
NanditaVora
commited on
Commit
•
3adf53a
1
Parent(s):
f90f3a6
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,9 @@ import streamlit as st
|
|
3 |
# x = st.slider('Select a value')
|
4 |
# st.write(x, 'squared is', x * x)
|
5 |
|
6 |
-
|
7 |
|
8 |
-
|
9 |
|
10 |
import requests
|
11 |
import os
|
@@ -21,9 +21,9 @@ def query(payload):
|
|
21 |
|
22 |
output = query({
|
23 |
"inputs": {
|
24 |
-
"question": "What is my name?",
|
25 |
-
|
26 |
}
|
27 |
})
|
28 |
|
29 |
-
st.write(output)
|
|
|
3 |
# x = st.slider('Select a value')
|
4 |
# st.write(x, 'squared is', x * x)
|
5 |
|
6 |
+
from datasets import load_dataset
|
7 |
|
8 |
+
dataset = load_dataset("soulhq-ai/insuranceQA-v2")
|
9 |
|
10 |
import requests
|
11 |
import os
|
|
|
21 |
|
22 |
output = query({
|
23 |
"inputs": {
|
24 |
+
"question": "What is my name?",
|
25 |
+
"context": dataset
|
26 |
}
|
27 |
})
|
28 |
|
29 |
+
st.write(output.answer)
|