shallou commited on
Commit
e452141
·
verified ·
1 Parent(s): 8116261

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -80,9 +80,6 @@ def main():
80
  result = qa_pipeline(question=query, context=best_chunk)
81
  st.write(result['answer'])
82
 
83
- if __name__ == '__main__':
84
- main()
85
-
86
  def set_bg_from_url(url, opacity=1):
87
  footer = """
88
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
@@ -121,5 +118,9 @@ def set_bg_from_url(url, opacity=1):
121
  """,
122
  unsafe_allow_html=True
123
  )
 
124
  # Set background image from URL
125
  set_bg_from_url("https://www.1access.com/wp-content/uploads/2019/10/GettyImages-1180389186.jpg", opacity=0.5)
 
 
 
 
80
  result = qa_pipeline(question=query, context=best_chunk)
81
  st.write(result['answer'])
82
 
 
 
 
83
  def set_bg_from_url(url, opacity=1):
84
  footer = """
85
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
 
118
  """,
119
  unsafe_allow_html=True
120
  )
121
+
122
  # Set background image from URL
123
  set_bg_from_url("https://www.1access.com/wp-content/uploads/2019/10/GettyImages-1180389186.jpg", opacity=0.5)
124
+
125
+ if __name__ == '__main__':
126
+ main()