Spaces:
Runtime error
Runtime error
Commit
·
e8b174e
1
Parent(s):
8f90d24
app
Browse files
app.py
CHANGED
|
@@ -17,10 +17,12 @@ def generate_code(input_text):
|
|
| 17 |
return output_text
|
| 18 |
|
| 19 |
# Gradio Interface
|
|
|
|
| 20 |
iface = gr.Interface(
|
| 21 |
fn=generate_code,
|
| 22 |
-
inputs=gr.
|
| 23 |
-
outputs="
|
| 24 |
)
|
| 25 |
|
|
|
|
| 26 |
iface.launch()
|
|
|
|
| 17 |
return output_text
|
| 18 |
|
| 19 |
# Gradio Interface
|
| 20 |
+
# Updated Gradio Interface
|
| 21 |
iface = gr.Interface(
|
| 22 |
fn=generate_code,
|
| 23 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter code/text snippet here..."),
|
| 24 |
+
outputs=gr.Textbox(label="Generated Code")
|
| 25 |
)
|
| 26 |
|
| 27 |
+
# Launch the interface
|
| 28 |
iface.launch()
|