Jkalonji commited on
Commit
d799b27
1 Parent(s): fb5d8fe

Update gradio app

Browse files
Files changed (1) hide show
  1. gradio_app.py +5 -3
gradio_app.py CHANGED
@@ -1,7 +1,9 @@
1
  import gradio as gr
 
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  iface.launch()
 
1
  import gradio as gr
2
+ import RAG
3
 
4
+ dropdown = gr.Dropdown(choices=["distilbert-base-uncased-distilled-squad",
5
+ "impira/layoutlm-document-qa",
6
+ "impira/layoutlm-invoices"], label="Choose a model")
7
 
8
+ iface = gr.Interface(fn=RAG.gradio_adapted_RAG, inputs=[dropdown, "text"], outputs="text")
9
  iface.launch()