Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = {
|