Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
from ibm_watson_machine_learning.foundation_models import Model
|
| 2 |
from ibm_watson_machine_learning.metanames import GenTextParamsMetaNames as GenParams
|
| 3 |
from ibm_watson_machine_learning.foundation_models.utils.enums import ModelTypes, DecodingMethods
|
|
@@ -6,7 +7,7 @@ import gradio as gr
|
|
| 6 |
|
| 7 |
# Set up the API key and project ID for IBM Watson
|
| 8 |
watsonx_API = os.getenv("WATSONX_API")
|
| 9 |
-
project_id = os.getenv("PROJECT_ID"
|
| 10 |
|
| 11 |
# Generation parameters
|
| 12 |
gen_parms = {
|
|
|
|
| 1 |
+
import os
|
| 2 |
from ibm_watson_machine_learning.foundation_models import Model
|
| 3 |
from ibm_watson_machine_learning.metanames import GenTextParamsMetaNames as GenParams
|
| 4 |
from ibm_watson_machine_learning.foundation_models.utils.enums import ModelTypes, DecodingMethods
|
|
|
|
| 7 |
|
| 8 |
# Set up the API key and project ID for IBM Watson
|
| 9 |
watsonx_API = os.getenv("WATSONX_API")
|
| 10 |
+
project_id = os.getenv("PROJECT_ID")
|
| 11 |
|
| 12 |
# Generation parameters
|
| 13 |
gen_parms = {
|