johnhelf commited on
Commit
ca93569
·
1 Parent(s): 58a88f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,6 +15,7 @@ st.sidebar.title("Code Interpreter API 🚀")
15
  st.sidebar.markdown("[Github Repo](https://github.com/shroominic/codeinterpreter-api)")
16
 
17
 
 
18
  # This will create a textbox where you can input text
19
  input_text = st.text_area("Write your prompt")
20
  uploaded_files = st.file_uploader("Upload your files", accept_multiple_files=True)
@@ -29,4 +30,4 @@ button_pressed = st.button("Run code interpreter", use_container_width=True)
29
 
30
  # This will display the images only when the button is pressed
31
  if button_pressed and input_text != "":
32
- asyncio.run(get_images(input_text, files=uploaded_files_list))
 
15
  st.sidebar.markdown("[Github Repo](https://github.com/shroominic/codeinterpreter-api)")
16
 
17
 
18
+ input_openai_key = st.text_box("openai_key")
19
  # This will create a textbox where you can input text
20
  input_text = st.text_area("Write your prompt")
21
  uploaded_files = st.file_uploader("Upload your files", accept_multiple_files=True)
 
30
 
31
  # This will display the images only when the button is pressed
32
  if button_pressed and input_text != "":
33
+ asyncio.run(get_images(input_text, files=uploaded_files_list,openai_key=input_openai_key))