nneka commited on
Commit
b66d423
1 Parent(s): c231260

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -1,11 +1,6 @@
1
  import gradio as gr
2
 
3
 
4
- # Define a function to get the model's response
5
- def get_response(context, question):
6
- answer = qa_model(question=question, context=context)["answer"]
7
- return answer
8
-
9
  # Define the interface components
10
  context_textbox = gr.Textbox(lines=10, label="Context")
11
  question_textbox = gr.Textbox(label="Question")
 
1
  import gradio as gr
2
 
3
 
 
 
 
 
 
4
  # Define the interface components
5
  context_textbox = gr.Textbox(lines=10, label="Context")
6
  question_textbox = gr.Textbox(label="Question")