Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
context = gr.inputs.Textbox(lines=5, placeholder="Enter the relevant theory or context of the questions here")
|
5 |
+
answer = gr.inputs.Textbox(lines=3, placeholder="Ënter the excpected answer/keyword here" )
|
6 |
+
question = [gr.outputs.Textbox(type="auto")for question in final_outputs]
|
7 |
+
|
8 |
+
|
9 |
+
iface = gr.Interface(
|
10 |
+
fn=generate_question,
|
11 |
+
inputs=[context,answer],
|
12 |
+
outputs=question)
|
13 |
+
iface.launch(debug=False)
|