Rodeeo commited on
Commit
251d0ea
β€’
1 Parent(s): 29f7357

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +8 -9
  2. app.py +9 -0
  3. requirements.txt +1 -0
README.md CHANGED
@@ -1,11 +1,10 @@
1
  ---
 
2
  title: Generate Python Code
3
- emoji: πŸ“ˆ
4
- colorFrom: gray
5
- colorTo: green
6
- sdk: static
7
- pinned: false
8
- license: mit
9
- ---
10
-
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ license: apache-2.0
3
  title: Generate Python Code
4
+ sdk: gradio
5
+ sdk_version: 3.39.0
6
+ app_file: app.py
7
+ emoji: πŸ‘€
8
+ colorFrom: green
9
+ colorTo: blue
10
+ ---
 
 
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def generate_python_code(code_input):
4
+ # Write your code to generate Python code here
5
+ return code_output
6
+
7
+ app = gr.Interface("Generate Python Code", ["String", gr.Button("Generate")], "String")
8
+
9
+ app.launch("web")
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio==3.39.0