Ashar086 commited on
Commit
2b419a3
·
verified ·
1 Parent(s): a8cddf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ if st.session_state.uploaded_file is not None:
53
  # Only call the API if we don't have analysis results yet
54
  if st.session_state.analysis_results is None:
55
  files = {"file": st.session_state.uploaded_file}
56
- response = requests.post("http://localhost:5002/upload", files=files)
57
  if response.status_code == 200:
58
  st.write("Contract uploaded successfully. Analyzing...")
59
  st.session_state.analysis_results = response.json()
 
53
  # Only call the API if we don't have analysis results yet
54
  if st.session_state.analysis_results is None:
55
  files = {"file": st.session_state.uploaded_file}
56
+
57
  if response.status_code == 200:
58
  st.write("Contract uploaded successfully. Analyzing...")
59
  st.session_state.analysis_results = response.json()