Spaces:
Runtime error
Runtime error
change chatbot to basic blocks
Browse files
app.py
CHANGED
|
@@ -23,9 +23,8 @@ def predict(user_input):
|
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
-
with gr.Blocks(title="Python Code Generation",theme=gr.
|
| 27 |
gr.HTML(value="<style>h1 {text-align: center;}</style><h1>Python Code Generation</h1>")
|
| 28 |
-
#gr.Markdown("# Python Code Generation")
|
| 29 |
input = gr.Textbox(label="Text Prompt",placeholder="Enter the prompt to generate code")
|
| 30 |
greet_btn = gr.Button("Generate")
|
| 31 |
output = gr.Textbox(label="Code")
|
|
|
|
| 23 |
|
| 24 |
|
| 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")
|