app2.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
def generate_code(prompt):
|
4 |
+
# Replace this with your Hugging Face function
|
5 |
+
return f"Generated Code for: {prompt}"
|
6 |
+
|
7 |
+
st.title("Code Assistant")
|
8 |
+
user_input = st.text_input("Enter your coding prompt")
|
9 |
+
if st.button("Generate"):
|
10 |
+
st.write(generate_code(user_input))
|