Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def generate_response(input_text):
|
|
36 |
Example
|
37 |
-------
|
38 |
"""
|
39 |
-
llm = OpenAI(temperature=0, openai_api_key=openai_api_key, max_tokens=512)
|
40 |
pal_chain = PALChain.from_math_prompt(llm, verbose=True)
|
41 |
st.write(pal_chain.run(input_text))
|
42 |
|
|
|
36 |
Example
|
37 |
-------
|
38 |
"""
|
39 |
+
llm = OpenAI(temperature=0, openai_api_key=openai_api_key, max_tokens=512, skip_on_failure=True)
|
40 |
pal_chain = PALChain.from_math_prompt(llm, verbose=True)
|
41 |
st.write(pal_chain.run(input_text))
|
42 |
|