Update gradio app
Browse files- gradio_app.py +5 -3
gradio_app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
4 |
-
|
|
|
5 |
|
6 |
-
iface = gr.Interface(fn=
|
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()
|