Spaces:
Runtime error
Runtime error
JJteam
commited on
Commit
路
91d9e3a
1
Parent(s):
2014e63
adding environment variable
Browse files- MM-REACT/app.py +11 -11
- 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=
|
| 73 |
-
params="
|
| 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=
|
| 81 |
params="")
|
| 82 |
|
| 83 |
imun_read = ImunAPIWrapper(
|
| 84 |
-
imun_url=
|
| 85 |
-
params="
|
| 86 |
imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
|
| 87 |
|
| 88 |
imun_receipt = ImunAPIWrapper(
|
| 89 |
-
imun_url=
|
| 90 |
-
params="
|
| 91 |
imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
|
| 92 |
|
| 93 |
imun_businesscard = ImunAPIWrapper(
|
| 94 |
-
imun_url=
|
| 95 |
-
params="
|
| 96 |
imun_subscription_key=os.environ.get("IMUN_OCR_SUBSCRIPTION_KEY"))
|
| 97 |
|
| 98 |
imun_layout = ImunAPIWrapper(
|
| 99 |
-
imun_url=
|
| 100 |
-
params="
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|