Spaces:
Sleeping
Sleeping
Commit
·
ba66a0a
1
Parent(s):
1e342f7
fixed python output code
Browse files
app.py
CHANGED
@@ -147,6 +147,7 @@ else:
|
|
147 |
if genre==radioButtonList[0]: # E-commerce CSV
|
148 |
# Initializing the agent
|
149 |
answer = llm.predict(f'''
|
|
|
150 |
I have CSV file contents below:
|
151 |
|
152 |
{str(csv_data)}
|
@@ -158,6 +159,7 @@ else:
|
|
158 |
elif genre==radioButtonList[1]: # Custom CSV Upload
|
159 |
# Initializing the agent
|
160 |
answer = llm.predict(f'''
|
|
|
161 |
I have CSV file contents below:
|
162 |
|
163 |
{str(csv_data)}
|
@@ -168,6 +170,7 @@ else:
|
|
168 |
|
169 |
elif genre==radioButtonList[2]: # Custom PDF Upload
|
170 |
pdf_answer = llm.predict(f'''
|
|
|
171 |
I have PDF file contents below:
|
172 |
|
173 |
{str(pdf_pages)}
|
@@ -179,6 +182,7 @@ else:
|
|
179 |
loader = WebBaseLoader(defaultGoogleURL)
|
180 |
web_data = loader.load()
|
181 |
answer = llm.predict(f'''
|
|
|
182 |
I have website contents below:
|
183 |
|
184 |
{str(web_data)}
|
@@ -191,6 +195,7 @@ else:
|
|
191 |
loader = WebBaseLoader(urlInput)
|
192 |
web_data = loader.load()
|
193 |
answer = llm.predict(f'''
|
|
|
194 |
I have website contents below:
|
195 |
|
196 |
{str(web_data)}
|
|
|
147 |
if genre==radioButtonList[0]: # E-commerce CSV
|
148 |
# Initializing the agent
|
149 |
answer = llm.predict(f'''
|
150 |
+
Do not reply with a python code.
|
151 |
I have CSV file contents below:
|
152 |
|
153 |
{str(csv_data)}
|
|
|
159 |
elif genre==radioButtonList[1]: # Custom CSV Upload
|
160 |
# Initializing the agent
|
161 |
answer = llm.predict(f'''
|
162 |
+
Do not reply with a python code.
|
163 |
I have CSV file contents below:
|
164 |
|
165 |
{str(csv_data)}
|
|
|
170 |
|
171 |
elif genre==radioButtonList[2]: # Custom PDF Upload
|
172 |
pdf_answer = llm.predict(f'''
|
173 |
+
Do not reply with a python code.
|
174 |
I have PDF file contents below:
|
175 |
|
176 |
{str(pdf_pages)}
|
|
|
182 |
loader = WebBaseLoader(defaultGoogleURL)
|
183 |
web_data = loader.load()
|
184 |
answer = llm.predict(f'''
|
185 |
+
Do not reply with a python code.
|
186 |
I have website contents below:
|
187 |
|
188 |
{str(web_data)}
|
|
|
195 |
loader = WebBaseLoader(urlInput)
|
196 |
web_data = loader.load()
|
197 |
answer = llm.predict(f'''
|
198 |
+
Do not reply with a python code.
|
199 |
I have website contents below:
|
200 |
|
201 |
{str(web_data)}
|