Joom commited on
Commit
efbc467
1 Parent(s): a8aea15

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
+
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)