dolphinium commited on
Commit
23a0eab
Β·
verified Β·
1 Parent(s): f4ff4c1

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +20 -6
  2. requirements.txt +7 -0
README.md CHANGED
@@ -1,12 +1,26 @@
 
1
  ---
2
- title: Pc Ai Data Analyst
3
- emoji: πŸ‘
4
- colorFrom: pink
5
- colorTo: pink
6
  sdk: gradio
7
- sdk_version: 5.36.2
8
  app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
  ---
3
+ title: PharmaCircle AI Data Analyst
4
+ emoji: πŸ’Š
5
+ colorFrom: blue
6
+ colorTo: green
7
  sdk: gradio
8
+ sdk_version: 4.19.1
9
  app_file: app.py
10
  pinned: false
11
  ---
12
 
13
+ # πŸ’Š PharmaCircle AI Data Analyst
14
+
15
+ This is a Gradio application that acts as an AI-powered data analyst for the PharmaCircle database. It uses a Large Language Model (LLM) to translate natural language questions into Solr queries, executes them, and then generates visualizations and reports based on the results.
16
+
17
+ ## Required Secrets
18
+
19
+ To run this space, you will need to set the following secrets in the "Settings" tab of your Hugging Face Space:
20
+
21
+ - `SSH_HOST`: The hostname or IP address of the SSH server for the tunnel.
22
+ - `SSH_USER`: The username for the SSH connection.
23
+ - `SSH_PASS`: The password for the SSH connection.
24
+ - `SOLR_USER`: The username for the Solr database.
25
+ - `SOLR_PASS`: The password for the Solr database.
26
+ - `GEMINI_API_KEY`: Your Google Gemini API key.
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ gradio
2
+ pysolr
3
+ sshtunnel
4
+ google-generativeai
5
+ pandas
6
+ seaborn
7
+ matplotlib