Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,17 +9,6 @@ def code_block(txt, mdn):
|
|
| 9 |
max_length=16384-len(txt),
|
| 10 |
stop=['###', '///', '\n\n\n\n'],
|
| 11 |
)['generated_text']), mdn+txt+res
|
| 12 |
-
|
| 13 |
-
code_input = gr.Code(label="Enter your code here")
|
| 14 |
-
submit_button = gr.Button(label="Submit")
|
| 15 |
-
|
| 16 |
-
options = [
|
| 17 |
-
gr.outputs.Accordion([
|
| 18 |
-
gr.Checkbox(label="Option 1"),
|
| 19 |
-
gr.Checkbox(label="Option 2"),
|
| 20 |
-
gr.Checkbox(label="Option 3")
|
| 21 |
-
], label="Options")
|
| 22 |
-
]
|
| 23 |
# COnvert this to gr.Blocks()
|
| 24 |
|
| 25 |
with gr.Blocks() as apps:
|
|
|
|
| 9 |
max_length=16384-len(txt),
|
| 10 |
stop=['###', '///', '\n\n\n\n'],
|
| 11 |
)['generated_text']), mdn+txt+res
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# COnvert this to gr.Blocks()
|
| 13 |
|
| 14 |
with gr.Blocks() as apps:
|