File size: 535 Bytes
089fa7f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import streamlit as st
from code_editor import code_editor
import random
import time

words = ["Create", "Write", "Generate", "Make", "Simplify", "Extend"]
l = True
word = None
while l:
    word = random.choice(words)
    time.sleep(5)

st.markdown(f":blue_background[{word}] Code With AI")
st.write("Real-time Code Generation & Code Editor")
lang = st.select_box("Choose Language", ["Python", "Javascript", "HTML", "C++", "C#", "Markdown", "Java", "C", "Go", "Ruby"])
code = code_editor("# Your Code Here", height=[1, 200], lang=lang)