Ctaake commited on
Commit
bf28f3c
·
verified ·
1 Parent(s): 87e46f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- import streamlit as st
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 != st.secrets["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}.
 
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}.