awacke1 commited on
Commit
d09b027
1 Parent(s): 2a78bb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -640,12 +640,13 @@ def main():
640
 
641
  with st.expander("Prompts 📚", expanded=False):
642
 
643
- example_input = st.text_input("Enter your example text:", value=prompt, help="Enter text to get a response from DromeLlama.")
644
- if st.button("Run Prompt With DromeLlama", help="Click to run the prompt."):
645
  try:
646
- StreamLLMChatResponse(example_input)
 
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
  if openai.api_key == None: openai.api_key = st.secrets['OPENAI_API_KEY']
 
640
 
641
  with st.expander("Prompts 📚", expanded=False):
642
 
643
+ example_input = st.text_input("Enter your prompt text for Llama:", value=prompt, help="Enter text to get a response from DromeLlama.")
644
+ if st.button("Run Prompt With Llama model", help="Click to run the prompt."):
645
  try:
646
+ response=StreamLLMChatResponse(example_input)
647
+ create_file(filename, example_input, response, should_save)
648
  except:
649
+ st.write('Llama model is asleep. Starting now on A10 GPU. Please wait one minute then retry. KEDA triggered.')
650
 
651
  openai.api_key = os.getenv('OPENAI_API_KEY')
652
  if openai.api_key == None: openai.api_key = st.secrets['OPENAI_API_KEY']