camparchimedes commited on
Commit
8e013d4
ยท
verified ยท
1 Parent(s): 9069a07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ from langchain_core.callbacks.streaming_stdout import StreamingStdOutCallbackHan
28
 
29
  #logging.basicConfig(level=logging.DEBUG)
30
 
31
-
32
  #HF_INFERENCE_ENDPOINT =
33
  #BOOKING_ID = re.compile(r'\b[A-Z]{6}\d{6}\b')
34
  BOOKING_KEYWORDS = [
@@ -105,7 +105,7 @@ def setup_multiple_chains():
105
  typical_p=0.95,
106
  temperature=0.7,
107
  repetition_penalty=1.03,
108
- huggingfacehub_api_token=os.environ.get("HUGGINGFACEHUB_API_TOKEN"),
109
  task="text-generation"
110
  )
111
 
 
28
 
29
  #logging.basicConfig(level=logging.DEBUG)
30
 
31
+ HUGGINGFACE_API_TOKEN = os.environ.get("HUGGINGFACEHUB_API_TOKEN")
32
  #HF_INFERENCE_ENDPOINT =
33
  #BOOKING_ID = re.compile(r'\b[A-Z]{6}\d{6}\b')
34
  BOOKING_KEYWORDS = [
 
105
  typical_p=0.95,
106
  temperature=0.7,
107
  repetition_penalty=1.03,
108
+ huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
109
  task="text-generation"
110
  )
111