Spaces:
Runtime error
Runtime error
ankur310794
commited on
Commit
•
338de82
1
Parent(s):
8e15bef
Faiss error fixed
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ from wikipedia.exceptions import DisambiguationError
|
|
4 |
from transformers import TFAutoModel, AutoTokenizer
|
5 |
import numpy as np
|
6 |
import pandas as pd
|
|
|
7 |
|
8 |
try:
|
9 |
nlp = spacy.load("en_core_web_sm")
|
@@ -124,5 +125,5 @@ def search(question):
|
|
124 |
|
125 |
import gradio as gr
|
126 |
inp = gr.inputs.Textbox(lines=2, default="Who is aamir khan?", label="Question")
|
127 |
-
out = gr.outputs.Dataframe(label="Answers")
|
128 |
gr.Interface(fn=search, inputs=inp, outputs=out).launch()
|
|
|
4 |
from transformers import TFAutoModel, AutoTokenizer
|
5 |
import numpy as np
|
6 |
import pandas as pd
|
7 |
+
import faiss
|
8 |
|
9 |
try:
|
10 |
nlp = spacy.load("en_core_web_sm")
|
|
|
125 |
|
126 |
import gradio as gr
|
127 |
inp = gr.inputs.Textbox(lines=2, default="Who is aamir khan?", label="Question")
|
128 |
+
out = gr.outputs.Dataframe(label="Answers")
|
129 |
gr.Interface(fn=search, inputs=inp, outputs=out).launch()
|