File size: 378 Bytes
312dbba
5f733b4
312dbba
5f733b4
 
312dbba
5f733b4
 
 
 
 
 
312dbba
5f733b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()