yoonusajward01 commited on
Commit
0424e42
·
verified ·
1 Parent(s): b2e1153

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +45 -0
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags:
4
+ - gpt2
5
+ - transformers
6
+ - text-generation
7
+ - adventure
8
+ - travel-itinerary
9
+ - custom-model
10
+ pipeline_tag: text-generation
11
+ ---
12
+
13
+ # TripTuner: Adventure Travel Itinerary Generator for Central Province, Sri Lanka
14
+
15
+ ## Overview
16
+
17
+ **TripTuner** is a custom-trained GPT-2 model designed to generate personalized adventure travel itineraries specifically for locations within the Central Province of Sri Lanka. The model is fine-tuned to provide detailed descriptions of adventure activities such as trekking, hiking, camping, and exploring scenic views, making it ideal for travel enthusiasts and tour planners.
18
+
19
+ ## Model Details
20
+
21
+ - **Model Type**: GPT-2
22
+ - **Library**: Transformers by Hugging Face
23
+ - **Use Case**: Text generation focused on adventure travel itineraries
24
+ - **Languages**: English
25
+ - **Training Data**: The model was fine-tuned on a custom dataset of adventure activities in various locations within Sri Lanka's Central Province.
26
+
27
+ ## How to Use
28
+
29
+ You can use this model directly with the Hugging Face Inference API or load it into your Python environment using the Transformers library.
30
+
31
+ ### Using the Inference API
32
+
33
+ You can test the model directly via the Hugging Face platform by clicking on the "Inference API" tab.
34
+
35
+ ### Using Transformers Pipeline
36
+
37
+ ```python
38
+ from transformers import pipeline
39
+
40
+ # Load the text generation pipeline using the uploaded model from Hugging Face
41
+ generator = pipeline('text-generation', model='yoonusajward01/triptuner')
42
+
43
+ # Test the model with a prompt
44
+ response = generator("[Q] Describe an adventure itinerary for Knuckles Mountain Range.", max_length=150, num_return_sequences=1)
45
+ print(response[0]['generated_text'])