Jforeverss commited on
Commit
54d1786
·
verified ·
1 Parent(s): e905f2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -114,15 +114,14 @@ if api_key:
114
 
115
  # If the above code doesn't raise an exception, the API key is valid
116
  st.success("API key is valid!")
117
-
118
- # Continue with the rest of your code...
119
- uploaded_file = st.file_uploader("Choose a PDF file", type="pdf")
120
 
121
  except Exception as e:
122
  st.error(f"Failed to validate API key: {e}")
123
  else:
124
  st.warning("Please enter your OpenAI API key.")
125
 
 
 
126
  # Select language
127
  language = st.selectbox('Select your language', ['English', 'French','Chinese','Korean','Spanish','German','Japanese'])
128
 
 
114
 
115
  # If the above code doesn't raise an exception, the API key is valid
116
  st.success("API key is valid!")
 
 
 
117
 
118
  except Exception as e:
119
  st.error(f"Failed to validate API key: {e}")
120
  else:
121
  st.warning("Please enter your OpenAI API key.")
122
 
123
+ uploaded_file = st.file_uploader("Choose a PDF file", type="pdf")
124
+
125
  # Select language
126
  language = st.selectbox('Select your language', ['English', 'French','Chinese','Korean','Spanish','German','Japanese'])
127