Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def create_interface():
|
|
96 |
code_input = gr.Code(
|
97 |
language="python",
|
98 |
lines=15,
|
99 |
-
|
100 |
# Example:
|
101 |
def fibonacci(n):
|
102 |
if n <= 1
|
@@ -168,12 +168,6 @@ print(process_list(data))"""]
|
|
168 |
)
|
169 |
|
170 |
# Event handlers
|
171 |
-
def on_debug_click(code):
|
172 |
-
# Update status
|
173 |
-
status_box.update(value="🔄 Processing your code...")
|
174 |
-
result = debug_code(code)
|
175 |
-
return result, "✅ Ready for next debug request"
|
176 |
-
|
177 |
debug_btn.click(
|
178 |
fn=debug_code,
|
179 |
inputs=code_input,
|
@@ -209,5 +203,4 @@ if __name__ == "__main__":
|
|
209 |
|
210 |
# Launch with appropriate settings for Hugging Face Spaces
|
211 |
demo.launch(
|
212 |
-
share=True
|
213 |
-
)
|
|
|
96 |
code_input = gr.Code(
|
97 |
language="python",
|
98 |
lines=15,
|
99 |
+
value="""# Paste your Python code here
|
100 |
# Example:
|
101 |
def fibonacci(n):
|
102 |
if n <= 1
|
|
|
168 |
)
|
169 |
|
170 |
# Event handlers
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
debug_btn.click(
|
172 |
fn=debug_code,
|
173 |
inputs=code_input,
|
|
|
203 |
|
204 |
# Launch with appropriate settings for Hugging Face Spaces
|
205 |
demo.launch(
|
206 |
+
share=True)
|
|