Ravi21 commited on
Commit
003e0e3
·
1 Parent(s): 1b6801c

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
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)