JJteam commited on
Commit
91d9e3a
1 Parent(s): 2014e63

adding environment variable

Browse files
Files changed (2) hide show
  1. MM-REACT/app.py +11 -11
  2. README.md +11 -1
MM-REACT/app.py CHANGED
@@ -69,35 +69,35 @@ def load_chain(history, log_state):
69
  # loading all tools
70
 
71
  imun_dense = ImunAPIWrapper(
72
- imun_url="https://ehazarwestus.cognitiveservices.azure.com/computervision/imageanalysis:analyze",
73
- params="api-version=2023-02-01-preview&model-version=latest&features=denseCaptions",
74
  imun_subscription_key=os.environ.get("IMUN_SUBSCRIPTION_KEY2"))
75
 
76
  imun = ImunAPIWrapper()
77
  imun = ImunMultiAPIWrapper(imuns=[imun, imun_dense])
78
 
79
  imun_celeb = ImunAPIWrapper(
80
- imun_url="https://cvfiahmed.cognitiveservices.azure.com/vision/v3.2/models/celebrities/analyze",
81
  params="")
82
 
83
  imun_read = ImunAPIWrapper(
84
- imun_url="https://vigehazar.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-read:analyze",
85
- params="api-version=2022-08-31",
86
  imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
87
 
88
  imun_receipt = ImunAPIWrapper(
89
- imun_url="https://vigehazar.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-receipt:analyze",
90
- params="api-version=2022-08-31",
91
  imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
92
 
93
  imun_businesscard = ImunAPIWrapper(
94
- imun_url="https://vigehazar.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard:analyze",
95
- params="api-version=2022-08-31",
96
  imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
97
 
98
  imun_layout = ImunAPIWrapper(
99
- imun_url="https://vigehazar.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-layout:analyze",
100
- params="api-version=2022-08-31",
101
  imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
102
 
103
  bing = BingSearchAPIWrapper(k=2)
69
  # loading all tools
70
 
71
  imun_dense = ImunAPIWrapper(
72
+ imun_url=os.environ.get("IMUN_URL2"),
73
+ params=os.environ.get("IMUN_PARAMS2"),
74
  imun_subscription_key=os.environ.get("IMUN_SUBSCRIPTION_KEY2"))
75
 
76
  imun = ImunAPIWrapper()
77
  imun = ImunMultiAPIWrapper(imuns=[imun, imun_dense])
78
 
79
  imun_celeb = ImunAPIWrapper(
80
+ imun_url=os.environ.get("IMUN_CELEB_URL"),
81
  params="")
82
 
83
  imun_read = ImunAPIWrapper(
84
+ imun_url=os.environ.get("IMUN_OCR_READ_URL"),
85
+ params=os.environ.get("IMUN_OCR_PARAMS"),
86
  imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
87
 
88
  imun_receipt = ImunAPIWrapper(
89
+ imun_url=os.environ.get("IMUN_OCR_RECEIPT_URL"),
90
+ params=os.environ.get("IMUN_OCR_PARAMS"),
91
  imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
92
 
93
  imun_businesscard = ImunAPIWrapper(
94
+ imun_url=os.environ.get("IMUN_OCR_BC_URL"),
95
+ params=os.environ.get("IMUN_OCR_PARAMS"),
96
  imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
97
 
98
  imun_layout = ImunAPIWrapper(
99
+ imun_url=os.environ.get("IMUN_OCR_LAYOUT_URL"),
100
+ params=os.environ.get("IMUN_OCR_PARAMS"),
101
  imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
102
 
103
  bing = BingSearchAPIWrapper(k=2)
README.md CHANGED
@@ -8,4 +8,14 @@ pinned: false
8
  license: other
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
8
  license: other
9
  ---
10
 
11
+ <h1 style=font-size:30px align="center">Additional Details</h1>
12
+ <p align="center">
13
+ <a style=font-size:25px href="https://multimodal-react.github.io/"> MM-ReAct Website</a>
14
+ ·
15
+ <a style=font-size:25px href="https://arxiv.org/abs/2303.11381">MM-ReAct Paper</a>
16
+ ·
17
+ <a style=font-size:25px href="https://github.com/microsoft/MM-REACT">MM-ReAct Code</a>
18
+ </p>
19
+
20
+ * If you modify the code you can build "langchain-0.0.94-py3-none-any.whl" from [this folder](https://github.com/microsoft/MM-REACT/tree/main/langchain) using "poetry build"
21
+ * [List of environment Variables](https://github.com/microsoft/MM-REACT#here-are-the-list-of-resources-you-need-to-set-up-in-azure-and-their-environment-variables) you need to set as SECRET in huggingface space.