Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,11 @@ qa_pipeline = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
|
| 10 |
# Gradio ์ธํฐํ์ด์ค ์ ์
|
| 11 |
iface = gr.Interface(
|
| 12 |
fn=lambda question: qa_pipeline(question=question, context=context)["answer"],
|
| 13 |
-
inputs=gr.Textbox(
|
| 14 |
outputs="text",
|
| 15 |
live=True,
|
| 16 |
capture_session=True,
|
| 17 |
)
|
| 18 |
|
| 19 |
# ์ธํฐํ์ด์ค ์คํ
|
| 20 |
-
iface.launch()
|
|
|
|
| 10 |
# Gradio ์ธํฐํ์ด์ค ์ ์
|
| 11 |
iface = gr.Interface(
|
| 12 |
fn=lambda question: qa_pipeline(question=question, context=context)["answer"],
|
| 13 |
+
inputs=gr.Textbox(label="Enter a question"),
|
| 14 |
outputs="text",
|
| 15 |
live=True,
|
| 16 |
capture_session=True,
|
| 17 |
)
|
| 18 |
|
| 19 |
# ์ธํฐํ์ด์ค ์คํ
|
| 20 |
+
iface.launch()
|