Jaehan commited on
Commit
d3c2d2f
1 Parent(s): 626e0b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
 
4
  model_name = "Salesforce/codegen-350M-mono"
5
  codegen_token = AutoTokenizer.from_pretrained(model_name)
6
- model = AutoTokenizer.from_pretrained(model_name)
7
 
8
  def codegen(intent):
9
  """Give input as text which reflects intent of the program.
 
3
 
4
  model_name = "Salesforce/codegen-350M-mono"
5
  codegen_token = AutoTokenizer.from_pretrained(model_name)
6
+ model = AutoModelForCausalLM.from_pretrained(model_name)
7
 
8
  def codegen(intent):
9
  """Give input as text which reflects intent of the program.