Spaces:
Sleeping
Sleeping
Commit
·
2cfbbc3
1
Parent(s):
c89e432
output based on elearning only
Browse files
app.py
CHANGED
@@ -41,5 +41,9 @@ def rag(frage: str) -> str:
|
|
41 |
antwort = generation(prompt=prompt, api_key=os.getenv('OPENAI_API_KEY'), model="gpt-4o")
|
42 |
return antwort
|
43 |
|
44 |
-
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
45 |
demo.launch()
|
|
|
41 |
antwort = generation(prompt=prompt, api_key=os.getenv('OPENAI_API_KEY'), model="gpt-4o")
|
42 |
return antwort
|
43 |
|
44 |
+
demo = gr.Interface(
|
45 |
+
fn=rag,
|
46 |
+
inputs="text",
|
47 |
+
outputs=[gr.Textbox(label='Antwort (basiert auf eLearning Kurs "Metropolen")', lines=4)]
|
48 |
+
)
|
49 |
demo.launch()
|