benisc90 commited on
Commit
47b681a
·
verified ·
1 Parent(s): 9c0e68c

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. hf_gradio_ai_app.py +2 -2
hf_gradio_ai_app.py CHANGED
@@ -73,7 +73,7 @@ def initialize_ai_components():
73
 
74
  The user will describe, in plain English, the type of query they would like to run on this clinical table.
75
  Do your best to provide a SQL query that would return the data they are looking for.
76
- If the user's prompt doesn't seem like a valid query request, just inform them that you cannot help with a task that is not query generation.
77
 
78
  User Question: {user_input}
79
 
@@ -81,7 +81,7 @@ def initialize_ai_components():
81
  """
82
  LANGCHAIN_PROMPT_TEMPLATE = ChatPromptTemplate.from_template(prompt_template_str)
83
 
84
- INITIAL_AI_SETUP_MESSAGE = "<p style='color:green; font-weight:bold;'>AI Components Initialized Successfully! Ready to chat.</p>"
85
  print("AI Components Initialized Successfully!")
86
  return True # Indicate success
87
  except Exception as e:
 
73
 
74
  The user will describe, in plain English, the type of query they would like to run on this clinical table.
75
  Do your best to provide a SQL query that would return the data they are looking for.
76
+ If the user's prompt doesn't seem like a valid query request, just inform them that you cannot help with a task that is not query generation, and explain why their prompt doesn't look relevant to your function.
77
 
78
  User Question: {user_input}
79
 
 
81
  """
82
  LANGCHAIN_PROMPT_TEMPLATE = ChatPromptTemplate.from_template(prompt_template_str)
83
 
84
+ INITIAL_AI_SETUP_MESSAGE = "<p style='color:green; font-weight:bold;'>AI Components Initialized Successfully! Ready to chat. My purpose is to take in natural language questions about the clinical dataset and to generate a relevant SQL query.</p>"
85
  print("AI Components Initialized Successfully!")
86
  return True # Indicate success
87
  except Exception as e: