Spaces:
Runtime error
Runtime error
Add 3 files
Browse files- README.md +8 -9
- app.py +9 -0
- requirements.txt +1 -0
README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
---
|
|
|
2 |
title: Generate Python Code
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
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
|