Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from ibm_watsonx_ai.foundation_models import Model
|
|
| 4 |
|
| 5 |
def get_credentials():
|
| 6 |
# Simulating the input of API key 'abc123456'
|
| 7 |
-
apikey = '
|
| 8 |
return {
|
| 9 |
"url": "https://us-south.ml.cloud.ibm.com",
|
| 10 |
"apikey": apikey
|
|
@@ -37,7 +37,7 @@ if st.button('Generate Code'):
|
|
| 37 |
model_id=model_id,
|
| 38 |
params=parameters,
|
| 39 |
credentials=credentials,
|
| 40 |
-
project_id="
|
| 41 |
)
|
| 42 |
|
| 43 |
# Generate response based on the prompt
|
|
|
|
| 4 |
|
| 5 |
def get_credentials():
|
| 6 |
# Simulating the input of API key 'abc123456'
|
| 7 |
+
apikey = '8hN8Zzpz_TcbC1E4hqZpSSATrH7RPon0t5Fa4eVVtP9d'
|
| 8 |
return {
|
| 9 |
"url": "https://us-south.ml.cloud.ibm.com",
|
| 10 |
"apikey": apikey
|
|
|
|
| 37 |
model_id=model_id,
|
| 38 |
params=parameters,
|
| 39 |
credentials=credentials,
|
| 40 |
+
project_id="eb2237d8-f81e-4c03-a952-8510fce2ca46",
|
| 41 |
)
|
| 42 |
|
| 43 |
# Generate response based on the prompt
|