Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
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.
|