Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,8 @@ def format_prompt(raw_Prompt):
|
|
13 |
|
14 |
|
15 |
def findShops(target_platform, target_region, target_field, target_rangeFrom, target_rangeTo, target_crossSelling, target_similarArticles, target_amount,compareSecret):
|
|
|
|
|
16 |
requestPrompt = f"""
|
17 |
Search for {target_amount} Shops that use the platform {target_platform}.
|
18 |
Make sure the recommended shops are located in {target_region}.
|
|
|
13 |
|
14 |
|
15 |
def findShops(target_platform, target_region, target_field, target_rangeFrom, target_rangeTo, target_crossSelling, target_similarArticles, target_amount,compareSecret):
|
16 |
+
if compareSecret != ACCESS_TOKEN:
|
17 |
+
return 'You are not authorized to use this software.'
|
18 |
requestPrompt = f"""
|
19 |
Search for {target_amount} Shops that use the platform {target_platform}.
|
20 |
Make sure the recommended shops are located in {target_region}.
|