dewiri commited on
Commit
14d8355
·
verified ·
1 Parent(s): c304c60

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import gradio as gr
3
+ from your_rag_code import run_qa_pipeline # deine Funktion importieren
4
+
5
+ def answer_question(query):
6
+ return run_qa_pipeline(query, k=5)
7
+
8
+ iface = gr.Interface(
9
+ fn=answer_question,
10
+ inputs=gr.Textbox(label="Stelle eine Frage zu Catan"),
11
+ outputs="text",
12
+ title="Catan Regel-Experte",
13
+ description="Stelle Fragen zu den Regeln von Catan. Z.B. 'Welche Zahlen sind am besten?'"
14
+ )
15
+
16
+ iface.launch()