awacke1 commited on
Commit
409c8cc
1 Parent(s): bd273cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -647,10 +647,12 @@ def main():
647
  except:
648
  st.write('DromeLlama is asleep. Starting up now on A10 - please give 5 minutes then retry as KEDA scales up from zero to activate running container(s).')
649
 
650
- openai.api_key = os.getenv('OPENAI_KEY')
651
  menu = ["txt", "htm", "xlsx", "csv", "md", "py"]
652
  choice = st.sidebar.selectbox("Output File Type:", menu)
 
653
  model_choice = st.sidebar.radio("Select Model:", ('gpt-3.5-turbo', 'gpt-3.5-turbo-0301'))
 
654
  user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)
655
  collength, colupload = st.columns([2,3]) # adjust the ratio as needed
656
  with collength:
@@ -674,7 +676,7 @@ def main():
674
  else:
675
  if st.button(f"Chat about Section {i+1}"):
676
  st.write('Reasoning with your inputs...')
677
- response = chat_with_model(user_prompt, section, model_choice)
678
  st.write('Response:')
679
  st.write(response)
680
  document_responses[i] = response
 
647
  except:
648
  st.write('DromeLlama is asleep. Starting up now on A10 - please give 5 minutes then retry as KEDA scales up from zero to activate running container(s).')
649
 
650
+ openai.api_key = os.getenv('OPENAI_API_KEY')
651
  menu = ["txt", "htm", "xlsx", "csv", "md", "py"]
652
  choice = st.sidebar.selectbox("Output File Type:", menu)
653
+
654
  model_choice = st.sidebar.radio("Select Model:", ('gpt-3.5-turbo', 'gpt-3.5-turbo-0301'))
655
+
656
  user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)
657
  collength, colupload = st.columns([2,3]) # adjust the ratio as needed
658
  with collength:
 
676
  else:
677
  if st.button(f"Chat about Section {i+1}"):
678
  st.write('Reasoning with your inputs...')
679
+ #response = chat_with_model(user_prompt, section, model_choice)
680
  st.write('Response:')
681
  st.write(response)
682
  document_responses[i] = response