Create app.py
Browse files
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)
|