Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 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 |
inputs=[context,answer],)
|
| 11 |
iface.launch(debug=False)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def hi():
|
| 4 |
+
return "hello"
|
| 5 |
+
|
| 6 |
context = gr.inputs.Textbox(lines=5, placeholder="Enter the relevant theory or context of the questions here")
|
| 7 |
answer = gr.inputs.Textbox(lines=3, placeholder="Ënter the excpected answer/keyword here" )
|
| 8 |
#question = [gr.outputs.Textbox(type="auto")for question in final_outputs]
|
| 9 |
|
| 10 |
|
| 11 |
iface = gr.Interface(
|
| 12 |
+
fn = hi,
|
| 13 |
inputs=[context,answer],)
|
| 14 |
iface.launch(debug=False)
|