Spaces:
Sleeping
Sleeping
moved travel guide output back to original spot
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from sentence_transformers import SentenceTransformer
|
|
| 10 |
from huggingface_hub import InferenceClient
|
| 11 |
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
file_path = 'requirements.txt'
|
| 16 |
dataset = load_dataset("text", data_files = "requirements.txt")
|
|
@@ -144,7 +144,6 @@ def respond(destination, transportation, date, preference, include_options, mino
|
|
| 144 |
- **Additional Info:** {', '.join(include_options) if include_options else 'None'}
|
| 145 |
Provide a detailed travel guide based on these details.
|
| 146 |
"""
|
| 147 |
-
|
| 148 |
travel_guide_output = prompt
|
| 149 |
print("respond", travel_guide_output)
|
| 150 |
return prompt
|
|
@@ -159,6 +158,8 @@ def respond(destination, transportation, date, preference, include_options, mino
|
|
| 159 |
# except Exception as e:
|
| 160 |
# return f"An error occurred: {e}"
|
| 161 |
|
|
|
|
|
|
|
| 162 |
def chatbot_respond(messages, chat_history):
|
| 163 |
|
| 164 |
print("chatbot_respond", travel_guide_output)
|
|
|
|
| 10 |
from huggingface_hub import InferenceClient
|
| 11 |
|
| 12 |
|
| 13 |
+
|
| 14 |
|
| 15 |
file_path = 'requirements.txt'
|
| 16 |
dataset = load_dataset("text", data_files = "requirements.txt")
|
|
|
|
| 144 |
- **Additional Info:** {', '.join(include_options) if include_options else 'None'}
|
| 145 |
Provide a detailed travel guide based on these details.
|
| 146 |
"""
|
|
|
|
| 147 |
travel_guide_output = prompt
|
| 148 |
print("respond", travel_guide_output)
|
| 149 |
return prompt
|
|
|
|
| 158 |
# except Exception as e:
|
| 159 |
# return f"An error occurred: {e}"
|
| 160 |
|
| 161 |
+
travel_guide_output = ""
|
| 162 |
+
|
| 163 |
def chatbot_respond(messages, chat_history):
|
| 164 |
|
| 165 |
print("chatbot_respond", travel_guide_output)
|