star_nox commited on
Commit
90bb9b0
1 Parent(s): 95445f2

fixed API issue

Browse files
Files changed (3) hide show
  1. __pycache__/retrieval.cpython-310.pyc +0 -0
  2. app.py +5 -5
  3. retrieval.py +5 -0
__pycache__/retrieval.cpython-310.pyc CHANGED
Binary files a/__pycache__/retrieval.cpython-310.pyc and b/__pycache__/retrieval.cpython-310.pyc differ
 
app.py CHANGED
@@ -210,11 +210,11 @@ with gr.Blocks(
210
  label="Model",
211
  interactive=True,
212
  )
213
- with gr.Row():
214
- with gr.Column():
215
- use_gpt3_checkbox = gr.Checkbox(label="Include GPT-3 (paid)?")
216
- with gr.Column():
217
- use_equation_checkbox = gr.Checkbox(label="Prioritize equations?")
218
 
219
  with gr.Row():
220
  with gr.Column():
 
210
  label="Model",
211
  interactive=True,
212
  )
213
+ # with gr.Row():
214
+ # with gr.Column():
215
+ # use_gpt3_checkbox = gr.Checkbox(label="Include GPT-3 (paid)?")
216
+ # with gr.Column():
217
+ # use_equation_checkbox = gr.Checkbox(label="Prioritize equations?")
218
 
219
  with gr.Row():
220
  with gr.Column():
retrieval.py CHANGED
@@ -15,6 +15,11 @@ from dotenv import load_dotenv
15
  from PIL import Image
16
  from transformers import (AutoModelForSequenceClassification, AutoTokenizer, GPT2Tokenizer, OPTForCausalLM, T5ForConditionalGeneration)
17
 
 
 
 
 
 
18
 
19
  class Retrieval:
20
  def __init__(self,
 
15
  from PIL import Image
16
  from transformers import (AutoModelForSequenceClassification, AutoTokenizer, GPT2Tokenizer, OPTForCausalLM, T5ForConditionalGeneration)
17
 
18
+ PINECONE_API_KEY = os.environ.get("PINECONE_API")
19
+ #
20
+ # from huggingface_hub import HfApi, SpaceHardware
21
+
22
+ #api = HfApi(token=PINECONE_API_KEY)
23
 
24
  class Retrieval:
25
  def __init__(self,