Yati05 commited on
Commit
916f3a4
·
1 Parent(s): dd3ac73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def predict(user_input):
25
 
26
  with gr.Blocks(title="Python Code Generation",theme=gr.themes.Monochrome()) as demo:
27
  gr.HTML(value="<style>h1 {text-align: center;}</style><h1>Python Code Generation</h1>")
28
- input = gr.Textbox(label="Text Prompt",placeholder="Enter the prompt to generate code")
29
  greet_btn = gr.Button("Generate")
30
  output = gr.Textbox(label="Code")
31
  greet_btn.click(fn=predict, inputs=input, outputs=output)
 
25
 
26
  with gr.Blocks(title="Python Code Generation",theme=gr.themes.Monochrome()) as demo:
27
  gr.HTML(value="<style>h1 {text-align: center;}</style><h1>Python Code Generation</h1>")
28
+ input = gr.Textbox(label="Write a python script to:",placeholder="e.g. Check if a number is prime")
29
  greet_btn = gr.Button("Generate")
30
  output = gr.Textbox(label="Code")
31
  greet_btn.click(fn=predict, inputs=input, outputs=output)