nolanzandi commited on
Commit
fb9bdd6
·
verified ·
1 Parent(s): c76addc

Update messaging to users for graphql (#37)

Browse files

- Update messaging to users for graphql (5c666d1e0c4c96f1ff6f17a990b43b6154bfa28a)

Files changed (1) hide show
  1. templates/graphql.py +3 -4
templates/graphql.py CHANGED
@@ -23,7 +23,9 @@ with gr.Blocks() as demo:
23
  <div class="bg-blue-50 border border-blue-200 rounded-lg max-w-2xl mx-auto">
24
  <p>This tool allows users to communicate with and query real time data from a GraphQL API endpoint using natural
25
  language and the above features.</p>
26
- <p style="font-weight:bold;">Notice: the way this system is designed, no login information is retained and credentials are passed as session variables until the user leaves or
 
 
27
  refreshes the page in which they disappear. They are never saved to any files.</p>
28
  <p style="font-weight:bold;"> I don't include a function that allows the system to run mutations and I instruct the agent to not alter any data, but it could in theory be possible,
29
  although my testing wasn't able to get the system to alter or write to the api. I would be careful to make sure permissions are restricted for the
@@ -35,9 +37,6 @@ with gr.Blocks() as demo:
35
  </div>
36
  </div>
37
  """, elem_classes="description_component")
38
-
39
- status_message = gr.HTML(value='<p style="color:green;text-align:center;font-size:18px;">Please be patient while connecting as we need to generate '
40
- 'and read a schema before connection can be successful. This process can take a few minutes.</p>', padding=False)
41
 
42
  graphql_url = gr.Textbox(label="GraphQL Endpoint URL", value=graphql_sample_endpoint)
43
  with gr.Row():
 
23
  <div class="bg-blue-50 border border-blue-200 rounded-lg max-w-2xl mx-auto">
24
  <p>This tool allows users to communicate with and query real time data from a GraphQL API endpoint using natural
25
  language and the above features.</p>
26
+ <p style="font-weight:bold;">Notice: API querying is the most difficult and experimental feature so far.
27
+ This tool may have variable performance and quality, although it should get better over time as I evaluate use.
28
+ No login information is retained and credentials are passed as session variables until the user leaves or
29
  refreshes the page in which they disappear. They are never saved to any files.</p>
30
  <p style="font-weight:bold;"> I don't include a function that allows the system to run mutations and I instruct the agent to not alter any data, but it could in theory be possible,
31
  although my testing wasn't able to get the system to alter or write to the api. I would be careful to make sure permissions are restricted for the
 
37
  </div>
38
  </div>
39
  """, elem_classes="description_component")
 
 
 
40
 
41
  graphql_url = gr.Textbox(label="GraphQL Endpoint URL", value=graphql_sample_endpoint)
42
  with gr.Row():