cszhzleo commited on
Commit
55f2708
1 Parent(s): 7ea4cc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -2,6 +2,12 @@ import gradio as gr
2
  import boto3
3
  import json
4
  import io
 
 
 
 
 
 
5
 
6
  # hyperparameters for llm
7
  parameters = {
 
2
  import boto3
3
  import json
4
  import io
5
+ import os
6
+
7
+ region = os.getenv("region")
8
+ sm_endpoint_name = os.getenv("sm_endpoint_name")
9
+ access_key = os.getenv("access_key")
10
+ secret_key = os.getenv("secret_key")
11
 
12
  # hyperparameters for llm
13
  parameters = {