deepsodha commited on
Commit
b8af99b
Β·
verified Β·
1 Parent(s): dab16b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()