Spaces:
Sleeping
Sleeping
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() | |