roblox-cs / app.py
asynchronousai's picture
Update app.py
de1f576 verified
raw
history blame
355 Bytes
import gradio as gr
folder_path = 'src/server'
file_name = 'main.cs'
file_path = os.path.join(folder_path, file_name)
def compile(cs):
os.makedirs(folder_path, exist_ok=True)
with open(file_path, 'w') as file:
file.write(cs)
return cs+" (but in lua)"
demo = gr.Interface(fn=compile, inputs="text", outputs="text")
demo.launch()