rkp74 commited on
Commit
8f5f663
1 Parent(s): 10e7e38

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ Question = pipeline("MCQ-Generation")
5
+
6
+ def get_Question(input_text):
7
+ return Question(input_text)
8
+
9
+ iface = gr.Interface(fn=get_Question,
10
+ inputs="text",
11
+ outputs="text"
12
+ title ="Automated MCQ Generation")
13
+ iface.launch(inline = false)