shreyasiv commited on
Commit
6e45b74
β€’
1 Parent(s): 35607e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -23,7 +23,7 @@ def main():
23
 
24
  csv_files = st.file_uploader("Upload CSV files", type="csv", accept_multiple_files=True)
25
  if csv_files:
26
- llm = OpenAI(temperature=0)
27
  user_input = st.text_input("Question here:")
28
 
29
  # Iterate over each CSV file
@@ -55,7 +55,6 @@ def main():
55
  st.write(response)
56
 
57
  # Add links to the sidebar with the same spacing properties
58
-
59
  st.sidebar.markdown("<p class='sidebar-link'>πŸ“š <a href='https://chandrakalagowda-demo2.hf.space/'> PDF Bot </a></p>", unsafe_allow_html=True)
60
  st.sidebar.markdown("<p class='sidebar-link'>πŸ–ΌοΈ <a href='https://insightly-image-reader.hf.space'> Image Reader</a></p>", unsafe_allow_html=True)
61
  st.sidebar.markdown("<p class='sidebar-link'>πŸ“Έ <a href='https://insightly-frame-capturer.hf.space/'> Frame Capturer</a></p>", unsafe_allow_html=True)
 
23
 
24
  csv_files = st.file_uploader("Upload CSV files", type="csv", accept_multiple_files=True)
25
  if csv_files:
26
+ llm = OpenAI(api_key=api_key, temperature=0, max_tokens=500) # Adjust max_tokens as needed
27
  user_input = st.text_input("Question here:")
28
 
29
  # Iterate over each CSV file
 
55
  st.write(response)
56
 
57
  # Add links to the sidebar with the same spacing properties
 
58
  st.sidebar.markdown("<p class='sidebar-link'>πŸ“š <a href='https://chandrakalagowda-demo2.hf.space/'> PDF Bot </a></p>", unsafe_allow_html=True)
59
  st.sidebar.markdown("<p class='sidebar-link'>πŸ–ΌοΈ <a href='https://insightly-image-reader.hf.space'> Image Reader</a></p>", unsafe_allow_html=True)
60
  st.sidebar.markdown("<p class='sidebar-link'>πŸ“Έ <a href='https://insightly-frame-capturer.hf.space/'> Frame Capturer</a></p>", unsafe_allow_html=True)