Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def generate_text(prompt, temperature, max_length):
|
|
29 |
def gradio_app():
|
30 |
with gr.Blocks() as demo:
|
31 |
gr.Markdown(title)
|
32 |
-
prompt = gr.Code(label="Enter your code prompt",
|
33 |
with gr.Row():
|
34 |
temperature = gr.Slider(minimum=0.1, maximum=1.0, step=0.1, value=0.5, label="Temperature")
|
35 |
max_length = gr.Slider(minimum=100, maximum=1024, step=10, value=100, label="Generate Length")
|
|
|
29 |
def gradio_app():
|
30 |
with gr.Blocks() as demo:
|
31 |
gr.Markdown(title)
|
32 |
+
prompt = gr.Code(label="Enter your code prompt", value="def print_hello_world():")
|
33 |
with gr.Row():
|
34 |
temperature = gr.Slider(minimum=0.1, maximum=1.0, step=0.1, value=0.5, label="Temperature")
|
35 |
max_length = gr.Slider(minimum=100, maximum=1024, step=10, value=100, label="Generate Length")
|