remiserra commited on
Commit
73dc8c0
·
1 Parent(s): 37c29c8
Files changed (1) hide show
  1. app.py +5 -5
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.{"."*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,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", value="https://us-south.ml.cloud.ibm.com", max_lines=1
234
- )
235
- wx_creds_apikey = gr.Textbox(
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
  )