Spaces:
Sleeping
Sleeping
File size: 693 Bytes
9259f41 fa4d7ed 6a56f31 ffc16f0 9259f41 4af178e 9259f41 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import gradio as gr
def execute(code, lang):
#return "Typeof code : " + str(type(code) + "\nCode : " + str(code) + "\nTypeof language : " + type(lang) + "\nLanguage : " + str(lang)
return f"Typeof code : {str(type(code))}\nCode : {str(code)}\nTypeof lang : {str(type(lang))}\nLanguage : {str(lang)}"
demo = gr.Interface(
fn=execute,
inputs=[
gr.Textbox(
show_label=True,
label="Code",
max_lines=4_294_967_295,
lines=4_294_967_295
),
gr.Dropdown(
show_label=True,
label="Language",
choices=["Python"]
)
],
outputs="text"
)
demo.launch(debug=True) |