Spaces:
Runtime error
Runtime error
Commit
·
9e0d484
1
Parent(s):
c04f134
add log10 instructions
Browse files
app.py
CHANGED
@@ -35,6 +35,7 @@ init_log10()
|
|
35 |
index = init_vector_db();
|
36 |
|
37 |
st.title('State of the Union')
|
|
|
38 |
query = st.text_input("Question:", "What did the president say about Ketanji Brown Jackson?")
|
39 |
#answer = index.query_with_sources(query, llm=ChatOpenAI(temperature=0, model_name="gpt-3.5-turbo"))
|
40 |
|
@@ -43,3 +44,12 @@ with log10_session():
|
|
43 |
answer = index.query_with_sources(query, llm=ChatOpenAI(temperature=0, model_name="gpt-3.5-turbo"))
|
44 |
|
45 |
st.write(answer)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
index = init_vector_db();
|
36 |
|
37 |
st.title('State of the Union')
|
38 |
+
|
39 |
query = st.text_input("Question:", "What did the president say about Ketanji Brown Jackson?")
|
40 |
#answer = index.query_with_sources(query, llm=ChatOpenAI(temperature=0, model_name="gpt-3.5-turbo"))
|
41 |
|
|
|
44 |
answer = index.query_with_sources(query, llm=ChatOpenAI(temperature=0, model_name="gpt-3.5-turbo"))
|
45 |
|
46 |
st.write(answer)
|
47 |
+
|
48 |
+
st.markdown('Log, Debug, Trace and Improve your _own_ LLM powered apps:')
|
49 |
+
st.markdown('1. Clone this space')
|
50 |
+
st.markdown('2. Create a free account on [log10.io](https://log10.io)')
|
51 |
+
st.markdown('3. Set the following secrets/env vars:')
|
52 |
+
st.markdown('- `LOG10_URL=https://log10.io`')
|
53 |
+
st.markdown('- `LOG10_TOKEN`: From the Settings tab in log10.io')
|
54 |
+
st.markdown('- `LOG10_ORG_ID`: From the Organization tab in log10.io')
|
55 |
+
st.markdown('- `OPENAI_API_KEY`: OpenAI API key')
|