Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,10 +12,10 @@ model = AutoModelForCausalLM.from_pretrained(model_dir)
|
|
| 12 |
|
| 13 |
code_generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
| 14 |
|
| 15 |
-
prompt = "def
|
| 16 |
|
| 17 |
|
| 18 |
-
inputs_text=st.text_input("Please enter the text",value=
|
| 19 |
|
| 20 |
if st.button("submit"):
|
| 21 |
generated_code = code_generator(inputs_text, max_length=200, num_return_sequences=1)
|
|
|
|
| 12 |
|
| 13 |
code_generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
| 14 |
|
| 15 |
+
prompt = "def "
|
| 16 |
|
| 17 |
|
| 18 |
+
inputs_text=st.text_input("Please enter the text",value="write a print statement")
|
| 19 |
|
| 20 |
if st.button("submit"):
|
| 21 |
generated_code = code_generator(inputs_text, max_length=200, num_return_sequences=1)
|