guptavishal79 commited on
Commit
76a7205
·
verified ·
1 Parent(s): 5e2af49

Load model

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,6 +1,11 @@
1
  import gradio
2
 
3
 
 
 
 
 
 
4
  # Function for response generation
5
  def generate_query_response(prompt, max_length=200):
6
 
 
1
  import gradio
2
 
3
 
4
+ # Load model
5
+ hub_path = 'guptavishal79/aimlops'
6
+ loaded_model = GPT2LMHeadModel.from_pretrained(hub_path)
7
+ loaded_tokenizer = GPT2Tokenizer.from_pretrained(hub_path)
8
+
9
  # Function for response generation
10
  def generate_query_response(prompt, max_length=200):
11