Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import re, subprocess, openai, random
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
4 |
import streamlit as st
|
@@ -6,6 +6,14 @@ from streamlit_chat import message
|
|
6 |
|
7 |
# some helper vars and functions
|
8 |
if 'displayChat' not in st.session_state:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
st.session_state['displayChat'] = False
|
10 |
if 'followup' not in st.session_state:
|
11 |
st.session_state['followup'] = False
|
|
|
1 |
+
import re, subprocess, openai, random, os, requests
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
4 |
import streamlit as st
|
|
|
6 |
|
7 |
# some helper vars and functions
|
8 |
if 'displayChat' not in st.session_state:
|
9 |
+
with st.spinner('Setting up plugins...')
|
10 |
+
os.system('mkdir files')
|
11 |
+
os.system('mkdir plugins')
|
12 |
+
googleS = requests.get('https://raw.githubusercontent.com/d3n7/GPT-4-Unlimited-Tools/main/plugins/google.py').content
|
13 |
+
googlePath = os.path.join(os.path.realpath(__file__), 'plugins', 'google.py')
|
14 |
+
with open(googlePath, 'wb') as f:
|
15 |
+
f.write(googleS)
|
16 |
+
|
17 |
st.session_state['displayChat'] = False
|
18 |
if 'followup' not in st.session_state:
|
19 |
st.session_state['followup'] = False
|