johaunh commited on
Commit
7ffa603
·
1 Parent(s): edbe5dd

Update requirements

Browse files
Files changed (2) hide show
  1. main.py +4 -3
  2. requirements.txt +1 -6
main.py CHANGED
@@ -156,7 +156,7 @@ class App:
156
  description=description,
157
  inputs=[
158
  gr.Textbox(placeholder="API key...", label="OpenAI API Key", type="password"),
159
- gr.Slider(maximum=10, step=1, label="Sentence Batching", info="Number of sentences per forward pass? Affects the number of calls made to ChatGPT.", ),
160
  gr.Checkbox(label="Axiom Decomposition", info="Decompose sentences into simpler axioms?\n(ex: \"I like cats and dogs.\" = \"I like cats. I like dogs.\")\nDoubles the number of calls to ChatGPT."),
161
  gr.Textbox(lines=2, placeholder="Text Here...", label="Input Text"),
162
  ],
@@ -179,9 +179,10 @@ class App:
179
  "organelle. We will shortly come to see that this is significantly "
180
  "different in eukaryotes. Prokaryotic DNA is in the cell's central "
181
  "part: the nucleoid.")]],
182
- allow_flagging="never"
 
183
  )
184
- demo.queue(concurrency_count=10).launch(share=False)
185
 
186
 
187
  if __name__ == "__main__":
 
156
  description=description,
157
  inputs=[
158
  gr.Textbox(placeholder="API key...", label="OpenAI API Key", type="password"),
159
+ gr.Slider(minimum=1, maximum=10, step=1, label="Sentence Batching", info="Number of sentences per forward pass? Affects the number of calls made to ChatGPT.", ),
160
  gr.Checkbox(label="Axiom Decomposition", info="Decompose sentences into simpler axioms?\n(ex: \"I like cats and dogs.\" = \"I like cats. I like dogs.\")\nDoubles the number of calls to ChatGPT."),
161
  gr.Textbox(lines=2, placeholder="Text Here...", label="Input Text"),
162
  ],
 
179
  "organelle. We will shortly come to see that this is significantly "
180
  "different in eukaryotes. Prokaryotic DNA is in the cell's central "
181
  "part: the nucleoid.")]],
182
+ allow_flagging="never",
183
+ cache_examples=False
184
  )
185
+ demo.launch(share=False)
186
 
187
 
188
  if __name__ == "__main__":
requirements.txt CHANGED
@@ -1,13 +1,8 @@
1
  gradio==4.2.0
2
  langchain==0.0.335
3
  matplotlib==3.7.1
4
- networkx==2.8.4
5
  nltk==3.7
6
- numpy==1.25.2
7
  pandas==2.0.3
8
  PyYAML==6.0
9
- scikit_learn==1.2.2
10
- sentence_transformers==2.2.2
11
- torch==2.0.1
12
- torch_geometric==2.3.1
13
  tqdm==4.65.0
 
1
  gradio==4.2.0
2
  langchain==0.0.335
3
  matplotlib==3.7.1
 
4
  nltk==3.7
5
+ openai==0.27.4
6
  pandas==2.0.3
7
  PyYAML==6.0
 
 
 
 
8
  tqdm==4.65.0