File size: 294 Bytes
de34d3f |
1 2 3 4 5 6 7 8 9 10 11 |
import streamlit as st
def generate_code(prompt):
# Replace this with your Hugging Face function
return f"Generated Code for: {prompt}"
st.title("Code Assistant")
user_input = st.text_input("Enter your coding prompt")
if st.button("Generate"):
st.write(generate_code(user_input))
|