Update main.py
Browse files
main.py
CHANGED
@@ -225,12 +225,13 @@ async def test(url:str):
|
|
225 |
try:
|
226 |
cached_response = cache.get(url)
|
227 |
if cached_response:
|
|
|
228 |
return cached_response
|
229 |
|
230 |
status,content=scrweb(url)
|
231 |
if status==200:
|
232 |
response=genetate_gemini_content(prompt6,content)
|
233 |
-
print(response)
|
234 |
cache[url] = response
|
235 |
return response
|
236 |
else:
|
|
|
225 |
try:
|
226 |
cached_response = cache.get(url)
|
227 |
if cached_response:
|
228 |
+
print("hii")
|
229 |
return cached_response
|
230 |
|
231 |
status,content=scrweb(url)
|
232 |
if status==200:
|
233 |
response=genetate_gemini_content(prompt6,content)
|
234 |
+
# print(response)
|
235 |
cache[url] = response
|
236 |
return response
|
237 |
else:
|