Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
import gradio as gr
|
| 4 |
import random
|
| 5 |
-
|
| 6 |
|
| 7 |
checkpoint = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
| 8 |
client = InferenceClient(checkpoint)
|
|
@@ -13,7 +13,7 @@ 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,accessKey):
|
| 16 |
-
if accessKey !=
|
| 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}.
|
|
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
import gradio as gr
|
| 4 |
import random
|
| 5 |
+
|
| 6 |
|
| 7 |
checkpoint = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
| 8 |
client = InferenceClient(checkpoint)
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
def findShops(target_platform, target_region, target_field, target_rangeFrom, target_rangeTo, target_crossSelling, target_similarArticles, target_amount,accessKey):
|
| 16 |
+
if accessKey != 'Kuchen':
|
| 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}.
|