gimbx commited on
Commit
de34d3f
·
verified ·
1 Parent(s): 4479cbf
Files changed (1) hide show
  1. app.py +10 -0
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))