We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaa6fd9 commit c5ac526Copy full SHA for c5ac526
app_llm.py
@@ -2,12 +2,10 @@
2
import copy
3
import json
4
import os
5
-
6
import requests
7
import streamlit as st
8
from requests.auth import HTTPBasicAuth
9
from simpleeval import simple_eval
10
11
from msfocr.data import dhis2
12
from msfocr.doctr import ocr_functions as doctr_ocr_functions
13
from msfocr.llm import ocr_functions
@@ -321,6 +319,10 @@ def authenticate():
321
319
322
320
dhis2.configure_DHIS2_server(username = st.session_state['username'], password=st.session_state['password'])
323
+ api_key = os.environ["AZURE_OPENAI_API_KEY"]
+ azure_endpoint = os.environ['AZURE_OPENAI_ENDPOINT']
324
+ ocr_functions.configure_azure_openai(api_key = api_key, azure_endpoint=azure_endpoint)
325
+
326
# File upload layout
327
upload_holder = st.empty()
328
0 commit comments