Hanjaewon commited on
Commit
561eccb
ยท
verified ยท
1 Parent(s): 8bda67b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(prompt="Enter a question"),
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()