Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,6 @@ import streamlit as st
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
def main():
|
| 5 |
-
st.set_page_config(page_title="Gradio QA Demo", page_icon="π€", layout="wide")
|
| 6 |
st.title("π€ AxionX Digital β Question Answering Demo")
|
| 7 |
|
| 8 |
st.markdown("Type a paragraph in **Context**, then ask a **Question** about it.")
|
|
@@ -30,5 +29,6 @@ def main():
|
|
| 30 |
st.write(f"**Answer:** {result['answer']}")
|
| 31 |
st.write(f"**Confidence Score:** {round(result['score'], 3)}")
|
| 32 |
|
|
|
|
| 33 |
if __name__ == "__main__":
|
| 34 |
main()
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
def main():
|
|
|
|
| 5 |
st.title("π€ AxionX Digital β Question Answering Demo")
|
| 6 |
|
| 7 |
st.markdown("Type a paragraph in **Context**, then ask a **Question** about it.")
|
|
|
|
| 29 |
st.write(f"**Answer:** {result['answer']}")
|
| 30 |
st.write(f"**Confidence Score:** {round(result['score'], 3)}")
|
| 31 |
|
| 32 |
+
# β
Make sure it runs standalone too
|
| 33 |
if __name__ == "__main__":
|
| 34 |
main()
|