CODEXspace / app.py
DEADLOCK007X's picture
Update app.py
fc0d268 verified
raw
history blame
581 Bytes
import gradio as gr
def evaluate_code(question, code):
# Dummy response (Replace with TinyLlama AI evaluation)
return "This code is correct and follows best practices."
iface = gr.Interface(
fn=evaluate_code,
inputs=[
gr.Textbox(lines=2, placeholder="Enter the problem question here..."),
gr.Code(language="python", placeholder="Write your code here...")
],
outputs=gr.Textbox(label="Evaluation Result"),
title="Code Evaluator",
description="Enter a coding question and your solution to get AI-powered feedback."
)
iface.launch()