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