Update app.py
Browse files
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
|
644 |
-
if st.button("Run Prompt With
|
645 |
try:
|
646 |
-
StreamLLMChatResponse(example_input)
|
|
|
647 |
except:
|
648 |
-
st.write('
|
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']
|