Sean-Case commited on
Commit
e78df68
1 Parent(s): 2e536f9

Explicitly installs required gradio version upon loading app

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -2,6 +2,9 @@
2
 
3
  # +
4
  import os
 
 
 
5
  from typing import TypeVar
6
  from langchain.embeddings import HuggingFaceEmbeddings, HuggingFaceInstructEmbeddings
7
  from langchain.vectorstores import FAISS
 
2
 
3
  # +
4
  import os
5
+ os.system("pip uninstall -y gradio")
6
+ os.system("pip install gradio==3.42.0")
7
+
8
  from typing import TypeVar
9
  from langchain.embeddings import HuggingFaceEmbeddings, HuggingFaceInstructEmbeddings
10
  from langchain.vectorstores import FAISS