Spaces:
Runtime error
Runtime error
File size: 359 Bytes
b52a718 217a305 5b195fc b52a718 5b195fc ebb322e b52a718 e1ccdde b52a718 217a305 c05a9c3 b52a718 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import random
import gradio as gr
code = 'def hello_world(): return "Hello, world!" print(hello_world())'
def prompt(message, history):
return gr.Code(value=code,language="python")
demo = gr.ChatInterface(prompt,
title="codeBot",
description="Ask me a question",
retry_btn="Retry",
undo_btn=None,
clear_btn="Clear")
demo.launch() |