Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
|
| 9 |
filename = "output_topic_details.txt" # Path to the file storing chess-specific details
|
| 10 |
retrieval_model_name = 'output/sentence-transformer-finetuned/'
|
| 11 |
|
| 12 |
-
openai.api_key = os.
|
| 13 |
|
| 14 |
system_message = "You are a eco-friendly travel chatbot specialized in providing information on eco-friendly restaurants, hotels, and attractions in NYC, you can also provide the user with environment-themed pickup lines."
|
| 15 |
# Initial system message to set the behavior of the assistant
|
|
@@ -168,4 +168,4 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 168 |
|
| 169 |
|
| 170 |
# Launch the Gradio app to allow user interaction
|
| 171 |
-
demo.launch(
|
|
|
|
| 9 |
filename = "output_topic_details.txt" # Path to the file storing chess-specific details
|
| 10 |
retrieval_model_name = 'output/sentence-transformer-finetuned/'
|
| 11 |
|
| 12 |
+
openai.api_key = os.getenv["HF_TOKEN"]
|
| 13 |
|
| 14 |
system_message = "You are a eco-friendly travel chatbot specialized in providing information on eco-friendly restaurants, hotels, and attractions in NYC, you can also provide the user with environment-themed pickup lines."
|
| 15 |
# Initial system message to set the behavior of the assistant
|
|
|
|
| 168 |
|
| 169 |
|
| 170 |
# Launch the Gradio app to allow user interaction
|
| 171 |
+
demo.launch()
|