Spaces:
Running
Running
typo
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ def wx_stream(
|
|
157 |
)
|
158 |
for chunk in wx_result_generator:
|
159 |
wx_result += chunk
|
160 |
-
yield f"Processing.{
|
161 |
print(f"wx_stream:wx_result:{wx_result}")
|
162 |
yield wx_status, wx_result, xml_string_to_html_img(wx_result)
|
163 |
|
@@ -230,11 +230,11 @@ with gr.Blocks() as demo:
|
|
230 |
# credentials
|
231 |
with gr.Accordion("Credentials:", open=True):
|
232 |
wx_creds_endpoint = gr.Textbox(
|
233 |
-
label="Endpoint",
|
234 |
-
|
235 |
-
|
236 |
-
label="API key", max_lines=1
|
237 |
)
|
|
|
238 |
wx_creds_projectid = gr.Textbox(
|
239 |
label="Project id", max_lines=1
|
240 |
)
|
|
|
157 |
)
|
158 |
for chunk in wx_result_generator:
|
159 |
wx_result += chunk
|
160 |
+
yield f"Processing.{'.'*int(randrange(3))}", wx_result, None
|
161 |
print(f"wx_stream:wx_result:{wx_result}")
|
162 |
yield wx_status, wx_result, xml_string_to_html_img(wx_result)
|
163 |
|
|
|
230 |
# credentials
|
231 |
with gr.Accordion("Credentials:", open=True):
|
232 |
wx_creds_endpoint = gr.Textbox(
|
233 |
+
label="Endpoint",
|
234 |
+
value="https://us-south.ml.cloud.ibm.com",
|
235 |
+
max_lines=1,
|
|
|
236 |
)
|
237 |
+
wx_creds_apikey = gr.Textbox(label="API key", max_lines=1)
|
238 |
wx_creds_projectid = gr.Textbox(
|
239 |
label="Project id", max_lines=1
|
240 |
)
|