Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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 |
|