Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
iface = gr.Interface(
|
4 |
+
fn=predict,
|
5 |
+
inputs=gr.DataFrame(columns=["id", "prompt", "A", "B", "C", "D", "E"]),
|
6 |
+
outputs=gr.Column(["id", "prediction"]),
|
7 |
+
live=True, # To display results as you type in inputs
|
8 |
+
examples=test.sample(5), # Add some sample data for the interface to show
|
9 |
+
title="LLM Science Exam Demo",
|
10 |
+
description="Enter the test data below and get predictions.",
|
11 |
+
)
|
12 |
+
iface.launch(share=True)
|