HemanM's picture
Update app.py
5f733b4 verified
raw
history blame
378 Bytes
import gradio as gr
from inference import predict
def compare(goal, sol1, sol2):
return predict(goal, sol1, sol2)
demo = gr.Interface(
fn=compare,
inputs=[gr.Text(label="Goal"), gr.Text(label="Solution 1"), gr.Text(label="Solution 2")],
outputs=gr.Text(label="Preferred Solution"),
title="EvoTransformer v2.1 - PIQA Commonsense Reasoning"
)
demo.launch()