Spaces:
Build error
Build error
13
Browse files
app.py
CHANGED
|
@@ -32,10 +32,10 @@ def answer_question(query, confidence_threshold=0.1):
|
|
| 32 |
|
| 33 |
# Интерфейс Gradio
|
| 34 |
iface = gr.Interface(fn=answer_question,
|
| 35 |
-
inputs=["text", gr.Slider(minimum=0.0, maximum=1.0, step=0.01,
|
| 36 |
outputs="text",
|
| 37 |
live=True,
|
| 38 |
-
title="
|
| 39 |
-
description="Задайте вопрос
|
| 40 |
|
| 41 |
iface.launch(share=True)
|
|
|
|
| 32 |
|
| 33 |
# Интерфейс Gradio
|
| 34 |
iface = gr.Interface(fn=answer_question,
|
| 35 |
+
inputs=["text", gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.1, label="Confidence Threshold")],
|
| 36 |
outputs="text",
|
| 37 |
live=True,
|
| 38 |
+
title="Canfly Tiny-Inna",
|
| 39 |
+
description="Задайте вопрос о Canfly")
|
| 40 |
|
| 41 |
iface.launch(share=True)
|