yoonusajward01 commited on
Commit
0c96a59
·
verified ·
1 Parent(s): 22d9a79

Create README.md

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