Spaces:
Sleeping
Sleeping
Kvikontent
commited on
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from code_editor import code_editor
|
3 |
+
import random
|
4 |
+
import time
|
5 |
+
|
6 |
+
words = ["Create", "Write", "Generate", "Make", "Simplify", "Extend"]
|
7 |
+
l = True
|
8 |
+
word = None
|
9 |
+
while l:
|
10 |
+
word = random.choice(words)
|
11 |
+
time.sleep(5)
|
12 |
+
|
13 |
+
st.markdown(f":blue_background[{word}] Code With AI")
|
14 |
+
st.write("Real-time Code Generation & Code Editor")
|
15 |
+
lang = st.select_box("Choose Language", ["Python", "Javascript", "HTML", "C++", "C#", "Markdown", "Java", "C", "Go", "Ruby"])
|
16 |
+
code = code_editor("# Your Code Here", height=[1, 200], lang=lang)
|